用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:constantforce2d:constantforce2d

ConstantForce2D 2D恒力

class in UnityEngine/Inherits from: PhysicsUpdateBehaviour2D

Description 描述

Applies both linear and angular (torque) forces continuously to the rigidbody each physics update.

在每次物理更新中不断应用于刚体的线性和角度(扭矩)的力。

This is equivalent of calling Rigidbody2D.AddForce, Rigidbody2D.AddRelativeForce and Rigidbody2D.AddTorque each physics update.

该属性等价于每次物理更新时调用Rigidbody2D.AddForce,Rigidbody2D.AddRelativeForce和Rigidbody2D.AddTorque。

See Also: Rigidbody2D.

Variables 变量

forceThe linear force applied to the rigidbody each physics update.
该线性力应用于每次物理更新时的刚体。
relativeForceThe linear force, relative to the rigid-body coordinate system, applied each physics update.
该线性力相对于刚体坐标系统应用于每次物理更新后。
torqueThe torque applied to the rigidbody each physics update.
扭矩应用于每次物理更新后的刚体。
script/unityengine/classes/constantforce2d/constantforce2d.txt · 最后更改: 2016/08/02 05:37 (外部编辑)