Example #1
0
 public void ApplyState(RotationState s)
 {
     Yaw.Value   = s.Yaw;
     Pitch.Value = s.Pitch;
     Roll.Value  = s.Roll;
 }
Example #2
0
 public RotationState Lerp(RotationState s2, float weight)
 {
     return(new RotationState(MathHelper.Lerp(Yaw, s2.Yaw, weight), MathHelper.Lerp(Pitch, s2.Pitch, weight), MathHelper.Lerp(Roll, s2.Roll, weight)));
 }
Example #3
0
 public Frame(double time, PartId part, RotationState state)
 {
     Time  = time;
     Part  = part;
     State = state;
 }