MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / GetEffectiveGravity

Function GetEffectiveGravity

TombEngine/Game/Animation/Animation.cpp:337–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335 }
336
337 float GetEffectiveGravity(float verticalVel)
338 {
339 return ((verticalVel >= VERTICAL_VELOCITY_GRAVITY_THRESHOLD) ? 1.0f : g_GameFlow->GetSettings()->Physics.Gravity);
340 }
341
342 Vector3i GetJointPosition(const ItemInfo& item, int boneID, const Vector3i& relOffset)
343 {

Callers 2

CanLandFunction · 0.85
AnimateItemFunction · 0.85

Calls 1

GetSettingsMethod · 0.80

Tested by

no test coverage detected