Toast Engine
Loading...
Searching...
No Matches
voxel_smash.hpp File Reference
#include "component_classification.hpp"
#include <algorithm>
#include <cmath>
#include <glm/glm.hpp>
#include <limits>
#include <toast/voxel/brick.hpp>
#include <toast/voxel/connectivity.hpp>
#include <toast/voxel/palette.hpp>
#include <toast/voxel/voxel_constants.hpp>
#include <toast/voxel/voxel_volume.hpp>
#include <utility>
#include <vector>
Include dependency graph for voxel_smash.hpp:

Go to the source code of this file.

Classes

struct  physics::SmashVolume
struct  physics::SmashPieces

Functions

auto physics::segmentBoxDistanceSquared (const glm::vec3 &from, const glm::vec3 &to, const glm::vec3 &center, float half_extent) -> float
template<typename Breaks>
auto physics::collectBrokenPieces (const voxel::Volume &volume, const voxel::Palette &palette, const voxel::MaterialLibrary &materials, const glm::vec3 &low, const glm::vec3 &high, Breaks &&breaks) -> SmashPieces
auto physics::collectSmashPieces (const voxel::Volume &volume, const voxel::Palette &palette, const voxel::MaterialLibrary &materials, const SmashVolume &smash, float energy_density, Hardness max_hardness=k_hardest) -> SmashPieces

Variables

constexpr float physics::k_no_floor = -1.0e30f

Detailed Description

Author
Dario
Date
03 Oct 2026