Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ApplyForceToCenter(Vector2, bool)

Apply a force to the center of mass. PhysicsBody.ApplyForceToCenter.
Read time 1 minuteLast updated 13 days 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.