Documentation

Unity Engine


User Manual

Script Reference

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

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.