rebuild_mesh_bvh
Builds and validates a temporary BVH for a DynamicMeshActor's live mesh to confirm it can be built, without changing the mesh.
Instructions
Build a BVH for the live dynamic mesh of a DynamicMeshActor with RebuildBVHForMesh and read it back with IsBVHValidForMesh. The BVH is a temporary that is not kept: the spatial-query tools build their own on every call, so this only checks that a BVH can be built for the mesh as it is now. bvh_rebuilt is true when the engine reported no error and the BVH reads back as valid; the call fails otherwise. The mesh is not changed.
Returns: { actor_name, bvh_rebuilt: bool, b_only_if_invalid, bvh_valid } -- actor_name is the dynamic mesh component's name, not the actor label.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor_name | Yes | DynamicMeshActor name (required) | |
| b_only_if_invalid | No | Optional, default true; it has no effect, since every call starts from an empty temporary BVH that the engine always rebuilds |