|
SleakEngine 1.0.0
C++23 multi-backend game engine
|
#include <Colliders.hpp>
Public Member Functions | |
| void | Build (const float *positions, size_t count, size_t stride, const uint32_t *indexData, size_t indexCount) |
| Copies vertex positions and indices out of raw mesh buffers and recomputes bounds. | |
Public Attributes | |
| AABB | bounds |
| std::vector< uint32_t > | indices |
| std::vector< Vector3D > | vertices |
Exact triangle-soup collision shape; heavier than the primitive shapes, used for static geometry.
Definition at line 204 of file Colliders.hpp.
|
inline |
Copies vertex positions and indices out of raw mesh buffers and recomputes bounds.
Definition at line 210 of file Colliders.hpp.
| AABB Sleak::Physics::TriangleMesh::bounds |
Definition at line 207 of file Colliders.hpp.
| std::vector<uint32_t> Sleak::Physics::TriangleMesh::indices |
Definition at line 206 of file Colliders.hpp.
| std::vector<Vector3D> Sleak::Physics::TriangleMesh::vertices |
Definition at line 205 of file Colliders.hpp.