FCalculateCustomPhysics

Delegate for applying custom physics forces upon the body.

Windows
MacOS
Linux

Type

typedef TBaseDelegate_TwoParams< void, float, FBodyInstance * > FCalculateCustomPhysics

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.

References

Module

Engine

Header

Runtime/Engine/Public/PhysicsPublic.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback