기술 자료

Unity Engine

Unity Engine

ApplyLinearImpulse(Vector2, Vector2, bool)

Apply an impulse at a point. This immediately modifies the velocity and also modifies the angular velocity if the point of application is not at the center of mass. This should be used for one-shot impulses. If you need a steady force, use a force instead, which will work better with the sub-stepping solver. PhysicsBody.ApplyLinearImpulse.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public void ApplyLinearImpulse(Vector2 impulse, Vector2 point, bool wake = true)

Parameters

impulse

The world impulse vector, usually in N"s or kg"m/s.

point

The world position of the point of application.

wake

Should the body be woken up.