Пример #1
0
    private void FixedUpdate()
    {
        float speed = carController.GetSpeed();

        transform.Rotate(Vector3.forward * -((speed - lastSpeed) * 13));
        lastSpeed = speed;
    }