typedef TBaseDelegate_TwoParams< void, float, FBodyInstance * > FCalculateCustomPhysics
Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/PhysicsPublic.h |
Include |
#include "PhysicsPublic.h" |
Delegate for applying custom physics forces upon the body. Can be passed to "AddCustomPhysics" so custom forces and torques can be calculated individually for every physics substep. The function provides delta time for a physics step and pointer to body instance upon which forces must be added.
Do not expect this callback to be called from the main game thread! It may get called from a physics simulation thread.