Documentation

Unity Engine

Unity Engine

ApplyForceToCenter(Vector2, bool)

Apply a force to the center of mass.
Read time 1 minuteLast updated 2 months ago

Definition

public void ApplyForceToCenter(Vector2 force, bool wake = true)

Parameters

force

The world force vector, usually in newtons (N).

wake

Should the body be woken up.