FBodyInstance::AddCustomPhysics

Add custom forces and torques on the body.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodyInstance.h

Include

#include "PhysicsEngine/BodyInstance.h"

Source

/Engine/Source/Runtime/Engine/Private/PhysicsEngine/BodyInstance.cpp

Syntax

void AddCustomPhysics
(
    FCalculateCustomPhysics & CalculateCustomPhysics
)

Remarks

Add custom forces and torques on the body. The callback will be called more than once, if substepping enabled, for every substep.

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