|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
What shapes one step. More...
#include <SpringBoneSolver.hpp>
Public Attributes | |
| f32 | stiffness = 0.1f |
| Pull toward the animated pose per 60 Hz frame, 0 to 1. | |
| f32 | drag = 0.5f |
| Share of speed lost per 60 Hz frame, 0 to 1. | |
| glm::vec3 | gravity {0.0f, -980.0f, 0.0f} |
| f32 | radius = 0.0f |
| The strand's own thickness, kept clear of colliders. | |
| glm::vec3 | wind {0.0f} |
| Steady wind acceleration, world units a second squared. | |
| f32 | windGust = 0.0f |
| How far gusts swing the wind's strength, 0 to 1: 0.5 takes it between half and one and a half times wind. | |
| f32 | windFrequency = 0.5f |
| Gusts a second. | |
| f32 | time = 0.0f |
| Seconds on the chain's own clock at the start of the call; gusts are a function of it, so a chain is repeatable. | |
What shapes one step.
Definition at line 35 of file SpringBoneSolver.hpp.
| f32 esengine::springbone::StepParams::drag = 0.5f |
Share of speed lost per 60 Hz frame, 0 to 1.
Definition at line 37 of file SpringBoneSolver.hpp.
Referenced by esengine::springbone::SpringBoneSystem::update().
| glm::vec3 esengine::springbone::StepParams::gravity {0.0f, -980.0f, 0.0f} |
Definition at line 38 of file SpringBoneSolver.hpp.
Referenced by esengine::springbone::SpringBoneSystem::update().
| f32 esengine::springbone::StepParams::radius = 0.0f |
The strand's own thickness, kept clear of colliders.
Definition at line 39 of file SpringBoneSolver.hpp.
Referenced by esengine::springbone::SpringBoneSystem::update().
| f32 esengine::springbone::StepParams::stiffness = 0.1f |
Pull toward the animated pose per 60 Hz frame, 0 to 1.
Definition at line 36 of file SpringBoneSolver.hpp.
Referenced by esengine::springbone::SpringBoneSystem::update().
| f32 esengine::springbone::StepParams::time = 0.0f |
Seconds on the chain's own clock at the start of the call; gusts are a function of it, so a chain is repeatable.
Definition at line 43 of file SpringBoneSolver.hpp.
Referenced by esengine::springbone::step(), and esengine::springbone::SpringBoneSystem::update().
| glm::vec3 esengine::springbone::StepParams::wind {0.0f} |
Steady wind acceleration, world units a second squared.
Definition at line 40 of file SpringBoneSolver.hpp.
Referenced by esengine::springbone::SpringBoneSystem::update().
| f32 esengine::springbone::StepParams::windFrequency = 0.5f |
Gusts a second.
Definition at line 42 of file SpringBoneSolver.hpp.
Referenced by esengine::springbone::SpringBoneSystem::update().
| f32 esengine::springbone::StepParams::windGust = 0.0f |
How far gusts swing the wind's strength, 0 to 1: 0.5 takes it between half and one and a half times wind.
Definition at line 41 of file SpringBoneSolver.hpp.
Referenced by esengine::springbone::SpringBoneSystem::update().