class
FSurfaceType
- Module
- Physics
- Header
#include "Physics/SurfaceType.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
static constexpr int32_t | Count | Default static_cast<int32_t>(ESurfaceType::Count). |
Public functions
| Returns | Name | Description |
|---|---|---|
const char* | Name | |
ESurfaceType | FromName | |
bool | IsValid | |
uint32_t | ScanColor | The colour a scanner paints a point when its ray lands on this surface, packed RGBA8 as r | g<<8 | b<<16 | a<<24 — the point-cloud vertex layout. |
Function details
Name
C++
static const char* Name(ESurfaceType surface)FromName
C++
static ESurfaceType FromName(const char* name)IsValid
C++
static bool IsValid(int32_t value)ScanColor
C++
static uint32_t ScanColor(ESurfaceType surface)The colour a scanner paints a point when its ray lands on this surface, packed RGBA8 as r | g<<8 | b<<16 | a<<24 — the point-cloud vertex layout. Keying the palette off the physics surface is the whole reason the surface lives on the collider: a ray already knows what it hit, so the colour needs no second lookup through the render material.
Generated from Physics/SurfaceType.h via physics.json · Nov 4, 2026Version 1.0.0