Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.Close
For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.Close
Constant Force is a quick utility for adding constant forces to a Rigidbody. This works great for one shot objects like rockets, if you don’t want it to start with a large velocity but instead accelerate.
|Force||The vector of a force to be applied in world space.|
|Relative Force||The vector of a force to be applied in the object’s local space.|
|Torque||The vector of a torque, applied in world space. The object will begin spinning around this vector. The longer the vector is, the faster the rotation.|
|Relative Torque||The vector of a torque, applied in local space. The object will begin spinning around this vector. The longer the vector is, the faster the rotation.|
To make a rocket that accelerates forward set the Relative Force to be along the positive z-axis. Then use the Rigidbody’s Drag property to make it not exceed some maximum velocity (the higher the drag the lower the maximum velocity will be). In the Rigidbody, also make sure to turn off gravity so that the rocket will always stay on its path.