Commit 1248c234 authored by Oliver Bock's avatar Oliver Bock

Move beam origins into pulsar's magnetosphere

parent 1ce2b8e0
......@@ -395,7 +395,7 @@ void PulsarAnimationWidget::paintGL()
glPolygonMode(GL_FRONT_AND_BACK,GL_LINE);
}
glTranslatef(0.0, 0.0, -m_pulsarBeamLength);
glTranslatef(0.0, 0.0, -(m_pulsarBeamLength + m_pulsarRadius + 0.1));
// draw first cone's outer layer
glBegin(GL_TRIANGLE_FAN);
......@@ -446,7 +446,7 @@ void PulsarAnimationWidget::paintGL()
glRotatef(m_pulsarRotationAngle - 90.0, 0.0, 0.0, 1.0);
glRotatef(m_pulsarMagneticAxisInclination, 1.0, 0.0, 0.0);
glTranslatef(0.0, 0.0, -m_pulsarBeamLength);
glTranslatef(0.0, 0.0, -(m_pulsarBeamLength + m_pulsarRadius + 0.1));
// draw second cone's outer layer
glBegin(GL_TRIANGLE_FAN);
......
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