My solution :)

if(MyRigidBody.velocity.x > Mathf.Epsilon || MyRigidBody.velocity.x < Mathf.Epsilon)
        {
        transform.localScale = new Vector2 (Mathf.Sign(MyRigidBody.velocity.x), 1f);
        }
1 Like

Good job with your solution!

1 Like

Privacy & Terms