MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / find_spring_min

Method find_spring_min

src/SB/Game/zEntPlayerBungeeState.cpp:671–676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

669 return 0.5f * v * v;
670 }
671 F32 hanging_state_type::find_spring_min(F32 min_dist, F32 max_dist, F32 gravity,
672 F32 damp) const
673 {
674 F32 e = xexp(-PI * damp * xsqrt(-(damp * damp - 1.0f)));
675 return (2.0f * min_dist + max_dist * (e - 1.0f)) / (1.0f + e);
676 }
677 U32 check_anim_start(xAnimTransition*, xAnimSingle*, void*)
678 {
679 return 0;

Callers

nothing calls this directly

Calls 2

xexpFunction · 0.85
xsqrtFunction · 0.85

Tested by

no test coverage detected