Exemple #1
0
    void FixedUpdate()
    {
        ai.Move(push * Time.fixedDeltaTime);
        float length = push.magnitude;

        length -= length * 0.6f * Time.fixedDeltaTime;
        push    = push.normalized * length;
    }