![]() |
vkmEngine 1.0.0
A C++ game engine · vkmengine.com
|
One primitive of a collider, in the entity's local frame. More...
#include <collider.h>
Public Attributes | |
| ColliderShape | shape = ColliderShape::Box |
| Which fields below are live. | |
| glm::vec3 | center = {0.0f, 0.0f, 0.0f} |
| Local offset from the entity origin. | |
| glm::vec3 | halfExtents = {0.5f, 0.5f, 0.5f} |
| Box: half-sizes. | |
| float | radius = 0.5f |
| Capsule: sweep radius. | |
| float | halfHeight = 0.5f |
| Capsule: half the segment, caps excluded. | |
| MeshHandle | mesh = {} |
| glm::vec3 | meshScale = {1.0f, 1.0f, 1.0f} |
| Mesh: applied to every vertex, as Transform scale is not. | |
One primitive of a collider, in the entity's local frame.
Placed by the entity Transform's position and rotation plus center. Sizes are absolute: the solver ignores Transform scale. A capsule's segment runs along local +Y; its total height is 2*(halfHeight + radius), and halfHeight 0 is a sphere.
| MeshHandle Vkm::Engine::ColliderPart::mesh = {} |
Mesh: whose triangles; stored by name