I have a cube and two smaller ones representing “propulsion rockets”. I’d like to apply force to each one in order to simulate a hovering effect. I managed to ApplyForce from the main cube to another rigidbody (smaller cube), but I can’t seem to understand how to use AddForceAtPosition. Here’s what I got:
The second parameter to AddForceAtPosition should be engine.transform.position - the position value for this function works in world space, not in the local space of the rigidbody you are applying the force to.
Thanks Andeee. You’re saying if I use engine.transform.position, it would apply force based on world position, not local? Because that’s what I believe is happening on my second try.
Force is applied to the object but in the same axis, regardless if the object flips over. I’m guessing it’s applying force based on world position. I’d like for it to apply force down one axis.
I’ve tried reading the documentation, but personally having trouble understanding the concept behind AddForcePosition