How to make my character land on x -3 (left)-> 0-> 3(right). Tried different things but failing . I am using a rigid body . An Example would be appreciated
Rigidbody.MovePosition() will be your best bet, if you want to use physics. Otherwise, you can also check out Transform.Translate ().
@Major Thank You , I am not assigning current position z to the vector so I am failing . The function is working fine now . Thank you for the support