기술 자료

Unity Engine

Unity Engine

SetMaxImpulse(int, float)

Set the maximum impulse that the solver can apply at a particular contact point in this contact pair.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public void SetMaxImpulse(int i, float value)

Parameters

Index of the contact point.

value

The maximum impulse that can be applied.

Remarks

Note that setting zero maximum impulse will be the same as disabling the contact point.