AddPhysicsForce

AddPhysicsForce(<-unit <-force <-forceOrImpulse)

Description

Adds a physics force to a unit containing part. Force is a V2 representing the x and y components of the applied force. ForceOrImpulse is a bool; if false, the applied force is equal to the amount needed to accelerate the unit by “force” pixels/second. If true, the applied force is much weaker.

A more in-depth explanation of force vs impulse can be found here: Rigidbody.AddForce

Examples