Esempio n. 1
0
    private void Rotate(float linearVelocity)
    {
        float angularVelocity = Angle.FromAngularVelocity(linearVelocity, radius)
                                .GetDegrees() * UtilMath.Sign(inverted);

        mover.OffsetRotation(angularVelocity);
    }
    private void Rotate(float linearVelocity)
    {
        float angularVelocity = UtilCircle.AngularVelocityDegrees(linearVelocity, radius)
                                * UtilMath.Sign(inverted);

        mover.OffsetRotation(angularVelocity);
    }
Esempio n. 3
0
    private void FixedUpdate()
    {
        float rotationDelta = rotationSpeed * Time.deltaTime;

        mover.OffsetRotation(rotationDelta);

        if (mover.GetRotation() >= rotationMax)
        {
            mover.TeleportRotation(rotationMin);
        }
    }
Esempio n. 4
0
 private void FixedUpdate()
 {
     mover.OffsetRotation(data.angularVelocity * data.refs.ts.DeltaTime());
 }
Esempio n. 5
0
 private void FixedUpdate()
 {
     mover.OffsetRotation(angularVelocity * timeScale.DeltaTime());
 }