typedef TBaseDelegate_TwoParams< void, const FBodyInstance *, FTransform & > FCalculateCustomProjection
Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/PhysicsPublic.h |
Include |
#include "PhysicsPublic.h" |
Delegate for applying custom physics projection upon the body. When this is set for the body instance, it will be called whenever component transformation is requested from the physics engine. If projection is required (for example, visual position of an object must be different to the one in physics engine, e.g. the box should not penetrate the wall visually) the transformation of body must be updated to account for it. Since this could be called many times by GetWorldTransform any expensive computations should be cached if possible.