FCalculateCustomPhysics

Delegate for applying custom physics forces upon the body.

Windows
MacOS
Linux

Type

typedef TBaseDelegate_TwoParams< void, float, FBodyInstance * > FCalculateCustomPhysics

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/PhysicsPublic.h

Include

#include "PhysicsPublic.h"

Remarks

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss