|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
One simulated point of a chain. More...
#include <SpringBoneSolver.hpp>
Public Attributes | |
| i32 | parent = -1 |
| Index of the parent particle, -1 for the root, which the animation drives. | |
| glm::vec3 | position {0.0f} |
| Simulated world position, and where it was a step ago (Verlet's velocity). | |
| glm::vec3 | previous {0.0f} |
| glm::vec3 | target {0.0f} |
| Where the animation puts it this frame. | |
| f32 | restLength = 0.0f |
| Its distance from its parent, which the chain keeps. | |
One simulated point of a chain.
Definition at line 22 of file SpringBoneSolver.hpp.
| i32 esengine::springbone::Particle::parent = -1 |
Index of the parent particle, -1 for the root, which the animation drives.
Definition at line 24 of file SpringBoneSolver.hpp.
Referenced by esengine::springbone::SpringBoneSystem::update().
| glm::vec3 esengine::springbone::Particle::position {0.0f} |
Simulated world position, and where it was a step ago (Verlet's velocity).
Definition at line 26 of file SpringBoneSolver.hpp.
| glm::vec3 esengine::springbone::Particle::previous {0.0f} |
Definition at line 27 of file SpringBoneSolver.hpp.
| f32 esengine::springbone::Particle::restLength = 0.0f |
Its distance from its parent, which the chain keeps.
Definition at line 31 of file SpringBoneSolver.hpp.
Referenced by esengine::springbone::SpringBoneSystem::update().
| glm::vec3 esengine::springbone::Particle::target {0.0f} |
Where the animation puts it this frame.
Definition at line 29 of file SpringBoneSolver.hpp.
Referenced by esengine::springbone::SpringBoneSystem::update().