|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
A sphere or capsule a spring chain is kept out of, placed by its entity's transform. More...
#include <SpringBone.hpp>
Public Member Functions | |
| SpringBoneCollider ()=default | |
Public Attributes | |
| SpringBoneShape | shape {SpringBoneShape::Sphere} |
| f32 | radius {10.0f} |
| Radius, in world units before the entity's scale. | |
| f32 | height {20.0f} |
| A capsule's length between its two end spheres' centres, in world units before scale. | |
| glm::vec3 | offset {0.0f, 0.0f, 0.0f} |
| Where the shape's centre is, in the entity's own space. | |
A sphere or capsule a spring chain is kept out of, placed by its entity's transform.
Definition at line 92 of file SpringBone.hpp.
|
default |
| f32 esengine::ecs::SpringBoneCollider::height {20.0f} |
A capsule's length between its two end spheres' centres, in world units before scale.
Definition at line 102 of file SpringBone.hpp.
Referenced by springbonecolliderApplyJS(), and springbonecolliderToJS().
| glm::vec3 esengine::ecs::SpringBoneCollider::offset {0.0f, 0.0f, 0.0f} |
Where the shape's centre is, in the entity's own space.
Definition at line 106 of file SpringBone.hpp.
Referenced by springbonecolliderApplyJS(), and springbonecolliderToJS().
| f32 esengine::ecs::SpringBoneCollider::radius {10.0f} |
Radius, in world units before the entity's scale.
Definition at line 98 of file SpringBone.hpp.
Referenced by springbonecolliderApplyJS(), and springbonecolliderToJS().
| SpringBoneShape esengine::ecs::SpringBoneCollider::shape {SpringBoneShape::Sphere} |
Definition at line 94 of file SpringBone.hpp.
Referenced by springbonecolliderApplyJS(), and springbonecolliderToJS().