- Home /
Gravitational pull without losing speed
Hi! I'm making an object A that has a gravitational pull on another object B that's at a constant speed. The pull works perfectly in the angle I want, however I'm using AddForce to accomplish the pull and this makes object B speed up. I want to prevent this, so it does turn to the wanted angle but doesn't gain speed.
Is there anyway to do this without using AddForce or some kind of formula that keeps the original speed?
You could look into AddTorque to add just a rotational force.
Answer by meat5000 · Aug 30, 2013 at 10:57 AM
You can change the Forcemode of AddForce. This should give you what you want.
http://docs.unity3d.com/Documentation/ScriptReference/Rigidbody.AddForce.html
http://docs.unity3d.com/Documentation/ScriptReference/ForceMode.html