class

FScanBvhWorld

The level's triangles gathered into an FScanBvhScene: every enabled mesh renderer, static bodies into the static hierarchy once, moving bodies and one tessellated capsule per animated bone into the dynamic hierarchy on each Sync. Pure CPU data — the GPU mesh's CPU copy, the same bytes whichever RHI loaded it — so a D3D12 client and a Vulkan client build the same scene.

Module
Game
Header
#include "PointCloud/ScanBvhWorld.h"
Namespace
Mowo

Constructors

SignatureNameDescription
FScanBvhWorld()FScanBvhWorld
~FScanBvhWorld()~FScanBvhWorld

Public functions

ReturnsNameDescription
voidBuild
voidSync
voidGatherBuild split for a caller that builds off the game thread: Gather reads the world (game thread) and only notes each static mesh with its transform; BuildStatic copies their triangles in and builds the hierarchy, touching nothing else.
voidBuildStatic
boolIsAvailable
const FScanBvhScene&Scene
FScanBvhScene&Scene
uint32_tDynamicMeshCount
uint32_tCapsuleCount
voidTessellateCapsuleA capsule along +Y, centred on the origin, as triangles.

Function details

FScanBvhWorld

C++
FScanBvhWorld()

~FScanBvhWorld

C++
~FScanBvhWorld()

Build

C++
void Build(World& world, const FScanBvhRuleFn& rules = {})

Sync

C++
void Sync(World& world, const FScanBvhRuleFn& rules = {})

Gather

C++
void Gather(World& world, const FScanBvhRuleFn& rules = {})

Build split for a caller that builds off the game thread: Gather reads the world (game thread) and only notes each static mesh with its transform; BuildStatic copies their triangles in and builds the hierarchy, touching nothing else. The copy is the costly part: done in Gather it held the game thread 5 s when Play started on the Intel Sponza.

BuildStatic

C++
void BuildStatic()

IsAvailable

C++
bool IsAvailable() const

Scene

C++
const FScanBvhScene& Scene() const

Scene

C++
FScanBvhScene& Scene()

DynamicMeshCount

C++
uint32_t DynamicMeshCount() const

CapsuleCount

C++
uint32_t CapsuleCount() const

TessellateCapsule

C++
static void TessellateCapsule(float radius, float halfHeight, uint32_t segments, uint32_t rings, std::vector<Vec3>& outPositions, std::vector<uint32_t>& outIndices)

A capsule along +Y, centred on the origin, as triangles. Public so the determinism row can tessellate one without a skeleton.

Generated from PointCloud/ScanBvhWorld.h via game.json · Nov 5, 2026Version 1.0.0