unreal.PhysicsThreadLibrary

class unreal.PhysicsThreadLibrary(outer: Object | None = None, name: Name | str = 'None')

Bases: BlueprintFunctionLibrary

Physics Thread Library

C++ Source:

  • Module: Engine

  • File: PhysicsThreadLibrary.h

classmethod add_force(handle, force, accel_change=False) None

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:
  • handle (BodyInstanceAsyncPhysicsTickHandle) –

  • force (Vector) – Force vector to apply. Magnitude indicates strength of force.

  • accel_change (bool) – If true, Force is taken as a change in acceleration instead of a physical force (i.e. mass will have no effect).