Skip to content
Snippets Groups Projects
Commit 1248c234 authored by Oliver Bock's avatar Oliver Bock
Browse files

Move beam origins into pulsar's magnetosphere

parent 1ce2b8e0
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment