|
Toast Engine
|
#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>
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 ¢er, 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 |