Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
SpringBone.hpp File Reference

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>
Include dependency graph for SpringBone.hpp:
This graph shows which files directly or indirectly include this file:

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

Detailed Description

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.

Author
ESEngine Team
Date
2026

Definition in file SpringBone.hpp.