Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UBodySetup
Description
Updates the tri mesh collision with new positions, and refits the BVH to match. This is not a full collision cook, and so you can only safely move positions and not change the structure
| Name | UpdateTriMeshVertices |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodySetup.h |
| Include Path | #include "PhysicsEngine/BodySetup.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/BodySetup.cpp |
void UpdateTriMeshVertices
(
const TArray < FVector > & NewPositions
)
Parameters
| Name | Remarks |
|---|---|
| NewPositions | The new mesh positions to use |