Rigidbodies enable your GameObjects to act under the control of physics. The Rigidbody can receive forces and torque to make your objects move in a realistic way. Any GameObject must contain a Rigidbody to be influenced by gravity, act under added forces via scripting, or interact with other objects through the NVIDIA PhysX physics engine.
这是unity官网上对unity的介绍。
其中需要注意的是Is Kinematic,如果勾选这个选项,(If enabled, the object will not be driven by the physics engine, and can only be manipulated by its Transform. This is useful for moving platforms or if you want to animate a Rigidbody that has a HingeJoint attached.),这是官网对它的介绍
RigidBody的基础知识
最新推荐文章于 2024-08-10 13:46:53 发布