Answer the question
In order to leave comments, you need to log in
How to set AddForce in local coordinates?
There is a certain game model. "Jet engines" are attached to it. The model, as is clear from the question itself, must move using AddForce (physics realism is very important, I don’t plan to use translate).
When using Vector3 as it is - the force is given relative to world, global coordinates.
void FixedUpdate()
{
rb.AddForce(new Vector3(-1, 0) * thrust);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question