Toast Engine
Loading...
Searching...
No Matches
fracture_profile.hpp File Reference

How a material breaks: how the energy of a hit is spent and how coarse its cracks are. More...

#include "material_defaults.hpp"
#include <algorithm>
#include <cstdint>
Include dependency graph for fracture_profile.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  physics::FractureValues
struct  physics::PackedFractureProfile

Functions

constexpr auto physics::detail::quantize (float value, float steps_per_unit, float max_steps) -> float

Variables

constexpr PackedFractureProfile physics::material_defaults::k_fracture_profile = PackedFractureProfile::pack(FractureValues {})

Detailed Description

How a material breaks: how the energy of a hit is spent and how coarse its cracks are.

Author
Xein
Date
18 Oct 2026