Method ApplyForceToCenter
- Namespace
- Box3D
- Assembly
- Box3D.NET.dll
ApplyForceToCenter(Vector3, bool)
Applies a force at the centre of mass, producing no rotation.
public void ApplyForceToCenter(Vector3 force, bool wake = true)Parameters
forceVector3-
The force, in newtons.
wakebool-
Whether to wake the body first. A sleeping body ignores the force.
Remarks
Forces accumulate over a step and are the right tool for sustained effects such as thrust. For an instantaneous change use Box3D.Body.ApplyImpulseToCenter(System.Numerics.Vector3,System.Boolean).