private void UpdateCurrentDegreesHeading()
    {
        mover.TeleportRotation(mover.GetRotation().Approach(
                                   angleTarget, angleChangePerSecond * timeScale.DeltaTime()));

        /*
         *  UtilApproach.AngleDegrees(mover.GetRotation(),
         *  targetDegrees, degreeChangePerSecond * timeScale.DeltaTime()));
         */
    }
示例#2
0
 private void Start()
 {
     mover.TeleportRotation(rotationMin);
 }
示例#3
0
 private void FixedUpdate()
 {
     // Update the GameObject's angle.
     mover.TeleportRotation(mover.GetRotation().ApproachCoterminal(
                                angleTarget, angleChangePerSecond * timeScale.DeltaTime()));
 }