Navigation
Unreal Engine C++ API Reference > Runtime > Engine > PhysicsEngine > FBodyInstance
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 |
void SetMaxDepenetrationVelocity
(
float MaxVelocity
)
Remarks
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)