Categories: Unity, C #, VS2015
Date Created: 2016-05-02 I. INTRODUCTION
Constant forces (Constant force) are quick utilities for adding constant force to a rigid body (rigidbody), for objects such as rockets, which are not very fast at first but are accelerating.
This is ideal if you do not want a single launch object (such as a rocket) to start at a larger rate but want to speed up slowly.
is a rocket propelled forward by constant force (Constant forces):
Second, related attributes
1, Force (Power)
A vector of forces applied in the world coordinate space. Sets the force used in the world coordinate system, expressed as a vector.
2. Relative force (Relative strength)
A vector of forces applied in the object's local coordinate space.
3, Torque (torque)
The vector of the torque applied in the world coordinate space. The object rotates around this vector. The longer the vector, the faster the rotation will be.
4, Relative Torque (relative torque)
The vector of the torque applied in the local coordinate space. The object rotates around this vector. The longer the vector, the faster the rotation will be. Third, detailed information
To create a forward-accelerating rocket, set the relative force (Relative forces) along the positive z-axis. The Resistance (Drag) property of the rigid body (rigidbody) is then used so that it does not exceed a certain maximum rate (the greater the resistance, the lower the maximum rate). In a rigid body (rigidbody), it is also necessary to ensure that gravity is turned off so that the rocket remains on its path. Iv. Use of skills
(1) To make the object flow upward, add a force property with a constant force of positive Y-values (Constant forces).
(2) To make the object fly forward, add a constant force (Constant forces) with a positive Z-value for the relative force (Relative forces) property.
"Unity" 11.6 constant (Constant force)