기술 자료

Unity Engine

Unity Engine

GetReactionTorque(float)

Gets the reaction torque of the joint given the specified timeStep.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public float GetReactionTorque(float timeStep)

Parameters

timeStep

The time to calculate the reaction torque for.

Returns

Type

Description

floatThe reaction torque of the joint in the specified
timeStep
.

Remarks

When a joint tries to constrain a Rigidbody2D it may need to apply torque to do so. This is known as the reaction torque.