Пример #1
0
 /// <summary>
 /// Changes the actor's pitch (In radians)
 /// </summary>
 /// <param name="x">The value to change the pitch by</param>
 /// <param name="interpolate">If true, the change will be interpolated</param>
 public virtual void ChangePitchRadians(Accum x, bool interpolate = false)
 {
     prevPitch = (interpolate ? pitch : prevPitch);
     pitch     = FixedMath.ClampInt((pitch + FixedMath.RadiansToDegrees(x)), -90, 90);
 }
Пример #2
0
 /// <summary>
 /// Changes the actor's pitch
 /// </summary>
 /// <param name="x">The value to change the pitch by</param>
 /// <param name="interpolate">If true, the change will be interpolated</param>
 public virtual void ChangePitch(Accum x, bool interpolate = false)
 {
     prevPitch = (interpolate ? pitch : prevPitch);
     pitch     = FixedMath.ClampInt((pitch + x), -90, 90);
 }