struct
SushiEngine::CameraSpeedControl
Holds the editor camera's flight speed: a stated number, a ramp and two bounds.
- Declared in
engine/foundation/core/include/SushiEngine/core/camera_speed_control.hpp
See also
engine/foundation/core/include/README.md
Properties
base_speed | The author's stated speed, units per second. |
maximum_speed | The ceiling, a preference rather than a limit of the arithmetic. |
adjust_step | Multiplicative factor per wheel notch. |
ramp_maximum | The factor sustained movement reaches. |
ramp_seconds | Seconds of held input to reach it. |
boost_multiplier | The shift key's factor, independent of the ramp. |
held_seconds | Seconds a movement key has been held. |
Public Methods
adjust | Scales the stated speed by a number of wheel notches. |
ramp | Returns the factor sustained movement has reached, between 1 and ramp_maximum. |
advance | Advances the ramp by one frame. |
effective | Returns the speed to apply this frame, in units per second. |

