Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Vector3 localVelocity= transform.InverseTransformDirection(_rb.Velocity);
- localVelocity.x = -input * speed* Time.fixedDeltaTime;
- _rb.Velocity= transform.TransformDirection(localVelocity);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement