Toast Engine
Loading...
Searching...
No Matches
voxel::PhysicalMaterial Struct Reference
Collaboration diagram for voxel::PhysicalMaterial:

Public Member Functions

constexpr auto isIndestructible () const noexcept -> bool
constexpr auto breakableBy (physics::Hardness max_hardness) const noexcept -> bool
constexpr auto collides () const noexcept -> bool
constexpr auto isFlammable () const noexcept -> bool

Public Attributes

uint16_t density = static_cast<uint16_t>(physics::material_defaults::k_density)
 kg/m³ never zero and integer so MassMoments stays exact
uint8_t flags = 0
physics::Hardness hardness = physics::material_defaults::k_hardness
 Damage that breaks only softer tiers never breaks this material.
physics::FracturePattern fracture_pattern = physics::material_defaults::k_fracture_pattern
physics::PackedFractureProfile fracture_profile = physics::material_defaults::k_fracture_profile
float toughness = physics::material_defaults::k_toughness
 kJ/m³ it takes to break per m3
float structural_strength = physics::material_defaults::k_structural_strength
float static_friction = physics::material_defaults::k_static_friction
float dynamic_friction = physics::material_defaults::k_dynamic_friction
float restitution = physics::material_defaults::k_restitution
float rolling_friction = physics::material_defaults::k_rolling_friction
float spin_friction = physics::material_defaults::k_spin_friction
float ignition_energy = 0.0f
float burn_rate = 0.0f
float fuel = 0.0f

The documentation for this struct was generated from the following file: