Commit 4f5a85b8 authored by Oliver Bock's avatar Oliver Bock

Added workaround to get animation and profile in sync for our candidate (needs fix)

parent 9148a60c
......@@ -657,9 +657,12 @@ void PulsarAnimationWidget::setPulsarMagneticAxisInclination(const int degrees)
void PulsarAnimationWidget::setPulsarBeamAngle(const int degrees)
{
// FIXME: get rid of this "Einstein constant!"
double radiusOffset = -0.27;
m_pulsarBeamAngle = degrees;
m_pulsarBeamOuterRadius = tan(deg2rad * degrees * 0.5f) * m_pulsarBeamLength + m_pulsarBeamRimSize * 0.5f;
m_pulsarBeamOuterRadius = tan(deg2rad * degrees * 0.5f) * m_pulsarBeamLength + m_pulsarBeamRimSize * 0.5f + radiusOffset;
m_pulsarBeamInnerRadius = m_pulsarBeamOuterRadius - m_pulsarBeamRimSize;
if(m_pulsarBeamInnerRadius < 0.0) m_pulsarBeamInnerRadius = 0.0;
updatePulseProfile();
......
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