Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

PhysicsBody.BatchImpulse.ApplyLinearImpulse

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void ApplyLinearImpulse(Vector2 impulse, Vector2 point, bool wake);

Parameters

Parameter Description
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.

Description

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.