|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Secondary motion for a chain of bones: hair, tails, cords, cloth edges. More...
#include "../../core/Types.hpp"#include "../../core/Reflection.hpp"#include "../../math/Math.hpp"#include <vector>

Go to the source code of this file.
Classes | |
| struct | esengine::ecs::SpringBone |
| struct | esengine::ecs::SpringBoneCollider |
| A sphere or capsule a spring chain is kept out of, placed by its entity's transform. More... | |
Namespaces | |
| namespace | esengine |
| namespace | esengine::ecs |
Enumerations | |
| enum class | esengine::ecs::SpringBoneShape : i32 { esengine::ecs::Sphere = 0 , esengine::ecs::Capsule = 1 } |
| What a SpringBoneCollider is shaped like. More... | |
Secondary motion for a chain of bones: hair, tails, cords, cloth edges.
A SpringBone on the ROOT of a chain makes every entity below it a spring: the animation still says where each bone would be, and the chain lags behind that pose by inertia, falls with gravity, and is pulled back toward it. The root itself is not simulated (it is what the animation or the body drives). The simulation lives in SpringBoneSystem, keyed by the root entity, so this component stays pure configuration and scene serialization never sees the transient state.
Definition in file SpringBone.hpp.