Skip to content

format

typescript
Rigidbody.AddForceAtPosition(force, position, mode)

class: Rigidbody

description

Apply force at a specified position.

This method can be used to apply force at a specific position on a Rigidbody, instead of directly applying it at the center of the Rigidbody. This allows for more precise and detailed physics simulation.

parameter

param_nametypedescription
forceVector3The force to be applied.
positionVector3The specified position.
modeForceModeThe type of force to be applied.

reture

typedescription
void

code example