文档

Unity Engine

Unity Engine

ApplyTorque(float, bool)

Apply a torque. This affects the angular velocity without affecting the linear velocity. PhysicsBody.ApplyTorque.
阅读时间1 分钟最后更新于 1 个月前

Definition

public void ApplyTorque(float torque, bool wake = true)

Parameters

torque

Torque, usually in N*m.

wake

Should the body be woken up.