struct

FVoxelColliderDesc

A chunk of solid voxels a body collides against without a triangle in sight. The grid is dimsX x dimsY x dimsZ cells of voxelSize metres whose minimum corner sits at origin; the solid set is a bit per cell, x fastest then y then z (see Index). Updating a chunk after an edit replaces this bit set on the existing body (PhysicsWorld::UpdateVoxelChunk); nothing is remeshed.

Module
Physics
Header
#include "Physics/PhysicsVoxel.h"
Namespace
Mowo

Properties

TypeNameDescription
Vec3originDefault Vec3(0.0f, 0.0f, 0.0f).
floatvoxelSizeDefault 0.25f.
int32_tdimsXDefault 32.
int32_tdimsYDefault 32.
int32_tdimsZDefault 32.
std::vector<uint64_t>solidBits
uint16_tlayerDefault ObjectLayers::Static.
ESurfaceTypesurfaceDefault ESurfaceType::Default.

Public functions

ReturnsNameDescription
int32_tCellCount
int32_tIndex
voidResizeSizes the bit set for the dimensions, all cells empty.
boolIsSolid
voidSetSolid
boolIsValidPositive dimensions, a bit set that covers them, and room for the cell index in a sub-shape id.

Function details

CellCount

C++
int32_t CellCount() const

Index

C++
int32_t Index(int32_t x, int32_t y, int32_t z) const

Resize

C++
void Resize(int32_t x, int32_t y, int32_t z)

Sizes the bit set for the dimensions, all cells empty.

IsSolid

C++
bool IsSolid(int32_t x, int32_t y, int32_t z) const

SetSolid

C++
void SetSolid(int32_t x, int32_t y, int32_t z, bool solid)

IsValid

C++
bool IsValid() const

Positive dimensions, a bit set that covers them, and room for the cell index in a sub-shape id.

Generated from Physics/PhysicsVoxel.h via physics.json · Nov 4, 2026Version 1.0.0