UBodySetup::UpdateTriMeshVertices

Updates the tri mesh collision with new positions, and refits the BVH to match.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodySetup.h

Include

#include "PhysicsEngine/BodySetup.h"

Source

/Engine/Source/Runtime/Engine/Private/PhysicsEngine/BodySetup.cpp

Syntax

void UpdateTriMeshVertices
(
    const TArray< FVector > & NewPositions
)

Remarks

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

Parameters

Parameter

Description

NewPositions

The new mesh positions to use

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss