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
| Type | Name | Description |
|---|---|---|
Vec3 | origin | Default Vec3(0.0f, 0.0f, 0.0f). |
float | voxelSize | Default 0.25f. |
int32_t | dimsX | Default 32. |
int32_t | dimsY | Default 32. |
int32_t | dimsZ | Default 32. |
std::vector<uint64_t> | solidBits | |
uint16_t | layer | Default ObjectLayers::Static. |
ESurfaceType | surface | Default ESurfaceType::Default. |
Public functions
| Returns | Name | Description |
|---|---|---|
int32_t | CellCount | |
int32_t | Index | |
void | Resize | Sizes the bit set for the dimensions, all cells empty. |
bool | IsSolid | |
void | SetSolid | |
bool | IsValid | Positive 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() constIndex
C++
int32_t Index(int32_t x, int32_t y, int32_t z) constResize
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) constSetSolid
C++
void SetSolid(int32_t x, int32_t y, int32_t z, bool solid)IsValid
C++
bool IsValid() constPositive 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