Navigation
Unreal Engine C++ API Reference > Runtime > Engine > PhysicsEngine > UBodySetup
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodySetup.h |
Include | #include "PhysicsEngine/BodySetup.h" |
Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/PhysUtils.cpp |
bool CreateFromModel
&40;
class UModel &42; InModel,
bool bRemoveExisting
&41;
Remarks
Converts a UModel to a set of convex hulls for simplified collision. Any convex elements already in this BodySetup will be destroyed. WARNING: the input model can have no single polygon or set of coplanar polygons which merge to more than FPoly::MAX_VERTICES vertices. true on success, false on failure because of vertex count overflow.
Parameters
Name | Description |
---|---|
InModel | The input BSP. |
bRemoveExisting | If true, clears any pre-existing collision |