Classes and structs representing data related to the engine's spatial query system (the precursor to a full-fledged physics system).
More...
#include <cmath>
#include <array>
#include <queue>
#include <glm/glm.hpp>
#include <glm/gtc/quaternion.hpp>
#include "../core/ecs_world.hpp"
Go to the source code of this file.
|
| namespace | ToyMaker |
| | Namespace containing all class definitions and functions related to the ToyMaker engine.
|
|
|
using | ToyMaker::BoxCorner = uint8_t |
| | Type used to represent the name of the corner of a box.
|
|
| enum | ToyMaker::BoxCornerSpecifier : BoxCorner { RIGHT =0x1
, TOP =0x2
, FRONT =0x4
} |
| | Enum values correspond to bits on a BoxCorner which help specify which side of the box on each axis is being indicated.
|
|
|
float | ToyMaker::squareDistance (const glm::vec3 &vector) |
| bool | ToyMaker::isFinite (float number) |
| | Tests whether a given number is finite.
|
| bool | ToyMaker::isFinite (const glm::vec3 &vector) |
| | Tests whether a set of 3 numbers is finite.
|
| bool | ToyMaker::isPositiveStrict (float number) |
| | Tests whether a number is strictly positive.
|
| bool | ToyMaker::isPositiveStrict (const glm::vec3 &vector) |
| | Tests whether a set of 3 numbers is strictly positive.
|
| bool | ToyMaker::isNonNegative (float number) |
| | Tests whether a number is non-negative.
|
| bool | ToyMaker::isNonNegative (const glm::vec3 &vector) |
| | Tests whether a set of numbers is non-negative.
|
| std::array< AreaTriangle, 12 > | ToyMaker::computeBoxFaceTriangles (const std::array< glm::vec3, 8 > &boxCorners) |
| | Generates a list of triangles making up the surface of a box situated somewhere in the world, given the coordinates of its corners.
|
|
| ToyMaker::NLOHMANN_JSON_SERIALIZE_ENUM (ObjectBounds::TrueVolumeType, { {ObjectBounds::TrueVolumeType::BOX, "box"}, {ObjectBounds::TrueVolumeType::SPHERE, "sphere"}, {ObjectBounds::TrueVolumeType::CAPSULE, "capsule"}, }) inline void to_json(nlohmann |
|
void | ToyMaker::from_json (const nlohmann::json &json, ObjectBounds &objectBounds) |
|
void | ToyMaker::to_json (nlohmann::json &json, const AxisAlignedBounds &axisAlignedBounds) |
|
void | ToyMaker::from_json (const nlohmann::json &json, AxisAlignedBounds &objectBounds) |
Classes and structs representing data related to the engine's spatial query system (the precursor to a full-fledged physics system).
- Author
- Zoheb Shujauddin (zoheb.nosp@m.2424.nosp@m.@gmai.nosp@m.l.co.nosp@m.m)
- Version
- 0.3.2
- Date
- 2025-09-08