struct
PhysicsMaterial
- Module
- Physics
- Header
#include "Physics/PhysicsMaterial.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
std::string | name | Default "Default". |
float | friction | Default 0.5f. |
float | restitution | Default 0.2f. |
float | density | Drives the collider's mass when RigidBody mass is left at 0. Default 1.0f. |
ESurfaceType | surfaceType | What the surface is made of. Reaches the Jolt shape as a shared FSurfaceMaterial, so contacts and queries read it straight back off the sub-shape they hit. Default ESurfaceType::Default. |
CombineMode | frictionCombine | Default CombineMode::Average. |
CombineMode | restitutionCombine | Default CombineMode::Average. |
Public functions
| Returns | Name | Description |
|---|---|---|
float | CombineValues |
Function details
CombineValues
C++
static float CombineValues(float a, float b, CombineMode mode)Generated from Physics/PhysicsMaterial.h via physics.json · Nov 4, 2026Version 1.0.0