기술 자료

Unity Engine

Unity Engine

ApplyLinearImpulseToCenter(Vector2, bool)

Apply an impulse to the center of mass. This immediately modifies the velocity. 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.ApplyLinearImpulseToCenter.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public void ApplyLinearImpulseToCenter(Vector2 impulse, bool wake = true)

Parameters

impulse

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

wake

Should the body be woken up.