Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FBodyInstance
Description
Set the maximum velocity used to depenetrate this object from others when spawned with initial overlaps or teleports (does not affect overlaps as a result of normal movement). A value of zero will allow objects that are spawned overlapping to go to sleep as they are rather than pop out of each other. Note: implicitly calls SetOverrideMaxDepenetrationVelocity(true) Note: MaxDepenetration overrides the CollisionInitialOverlapDepenetrationVelocity project setting (and not the MaxDepenetrationVelocity solver setting that will be deprecated)
| Name | SetMaxDepenetrationVelocity |
| 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 SetMaxDepenetrationVelocity
(
float MaxVelocity
)