MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / accel

Function accel

Engine/source/T3D/player.cpp:3630–3636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3628// PATHSHAPE END
3629
3630static void accel(F32& from, F32 to, F32 rate)
3631{
3632 if (from < to)
3633 from = getMin(from += rate, to);
3634 else
3635 from = getMax(from -= rate, to);
3636}
3637
3638// if (dt == -1)
3639// normal tick, so we advance.

Callers 1

fallToGroundMethod · 0.85

Calls 1

getMaxFunction · 0.85

Tested by

no test coverage detected