G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
PhysicsThread Namespace Reference

Functions

Utilities
void AddForce (FBodyInstanceAsyncPhysicsTickHandle Handle, FVector Force, bool bAccelChange=false)
 Add a force to a single rigid body. This is like a 'thruster'. Good for adding a burst over some (non zero) time. Should be called every frame for the duration of the force.

Function Documentation

◆ AddForce()

void AddForce ( FBodyInstanceAsyncPhysicsTickHandle Handle,
FVector Force,
bool bAccelChange = false )

Add a force to a single rigid body. This is like a 'thruster'. Good for adding a burst over some (non zero) time. Should be called every frame for the duration of the force.

Parameters
ForceForce vector to apply. Magnitude indicates strength of force.
bAccelChangeIf true, Force is taken as a change in acceleration instead of a physical force (i.e. mass will have no effect).