Commit f11cabbd authored by Oliver Bock's avatar Oliver Bock

Adjusted rotations to Ben's formulas

parent 1c6f58a7
......@@ -306,7 +306,7 @@ void PulsarAnimationWidget::paintGL()
glRotatef(-m_pulsarSpinAxisInclination, 1.0, 0.0, 0.0);
glRotatef(-m_pulsarRotationAngle - 90.0, 0.0, 0.0, 1.0);
glRotatef(m_pulsarMagneticAxisInclination, 0.0, 1.0, 0.0);
glRotatef(-m_pulsarMagneticAxisInclination, 0.0, 1.0, 0.0);
// draw magnetic axis (for both cones)
if(m_showRotationAxes) {
......@@ -377,7 +377,7 @@ void PulsarAnimationWidget::paintGL()
glRotatef(-m_pulsarSpinAxisInclination, 1.0, 0.0, 0.0);
glRotatef(m_pulsarRotationAngle - 90.0, 0.0, 0.0, 1.0);
glRotatef(m_pulsarMagneticAxisInclination, 0.0, 1.0, 0.0);
glRotatef(-m_pulsarMagneticAxisInclination, 0.0, 1.0, 0.0);
glTranslatef(0.0, 0.0, -4.0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment