|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
An upright capsule — the shape a character is. More...
#include <RigidBody3D.hpp>
Public Attributes | |
| f32 | radius {30.0f} |
| f32 | halfHeight {50.0f} |
| glm::vec3 | center {0.0f, 0.0f, 0.0f} |
| Where the shape sits from the entity's origin, in world units; zero is centred on it. | |
| f32 | friction {0.3f} |
| f32 | restitution {0.0f} |
| bool | isSensor {false} |
| bool | enabled {true} |
An upright capsule — the shape a character is.
Total height is 2*(halfHeight + radius): halfHeight is the cylinder's half, and a cap of radius sits on each end. Stated because the two are easy to swap and their SUM still holds a body at the same height, so a swap shows up only in how wide it is.
Definition at line 135 of file RigidBody3D.hpp.
| glm::vec3 esengine::ecs::CapsuleCollider3D::center {0.0f, 0.0f, 0.0f} |
Where the shape sits from the entity's origin, in world units; zero is centred on it.
Definition at line 144 of file RigidBody3D.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| bool esengine::ecs::CapsuleCollider3D::enabled {true} |
Definition at line 156 of file RigidBody3D.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| f32 esengine::ecs::CapsuleCollider3D::friction {0.3f} |
Definition at line 147 of file RigidBody3D.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| f32 esengine::ecs::CapsuleCollider3D::halfHeight {50.0f} |
Definition at line 140 of file RigidBody3D.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| bool esengine::ecs::CapsuleCollider3D::isSensor {false} |
Definition at line 153 of file RigidBody3D.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| f32 esengine::ecs::CapsuleCollider3D::radius {30.0f} |
Definition at line 137 of file RigidBody3D.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| f32 esengine::ecs::CapsuleCollider3D::restitution {0.0f} |
Definition at line 150 of file RigidBody3D.hpp.
Referenced by EMSCRIPTEN_BINDINGS().