Documentation

Unity Engine


User Manual

Script Reference

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.
Read time 1 minuteLast updated 10 days ago

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.