Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FBodyInstance
Description
Add custom forces and torques on the body. The callback will be called more than once, if substepping enabled, for every substep.
| Name | AddCustomPhysics |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodyInstance.h |
| Include Path | #include "PhysicsEngine/BodyInstance.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/BodyInstance.cpp |
void AddCustomPhysics
(
FCalculateCustomPhysics & CalculateCustomPhysics
)