Hey guys,
While programming, i fell into a problem. I want to move an object on its relative axis, but everything ive tried makes the object move on the global axis
I am using rigidbody.Addforce
Hey guys,
While programming, i fell into a problem. I want to move an object on its relative axis, but everything ive tried makes the object move on the global axis
I am using rigidbody.Addforce
Use:
rigidbody.AddRelativeForce(someVector3 * amount);
or:
rigidbody.AddForce(transform.TransformDirection(someVector3 * amount));