Example #1
0
 public Orbit(float yaw, float pitch, float roll, OrbitConstraint constraint)
 {
     m_constraint = constraint;
     m_yaw        = constraint.Yaw(yaw);
     m_pitch      = constraint.Pitch(pitch);
     m_roll       = constraint.Roll(roll);
     m_direction  = CalculateDirection(m_yaw, m_pitch);
     m_rotation   = CalculateRotation(m_yaw, m_pitch, m_roll);
 }
Example #2
0
 private void WrapAxes()
 {
     m_yaw   = m_constraint.Yaw(m_yaw);
     m_pitch = m_constraint.Pitch(m_pitch);
     m_roll  = m_constraint.Roll(m_roll);
 }