Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::ecs::SpringBoneCollider Struct Reference

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ SpringBoneCollider()

esengine::ecs::SpringBoneCollider::SpringBoneCollider ( )
default

Member Data Documentation

◆ height

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().

◆ offset

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().

◆ radius

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().

◆ shape

SpringBoneShape esengine::ecs::SpringBoneCollider::shape {SpringBoneShape::Sphere}

Definition at line 94 of file SpringBone.hpp.

Referenced by springbonecolliderApplyJS(), and springbonecolliderToJS().


The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/ecs/components/SpringBone.hpp