MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / playerIsFalling

Method playerIsFalling

Source/PlayerObject.cpp:702–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700}
701
702bool PlayerObject::playerIsFalling()
703{
704 if (this->isGravityFlipped())
705 return this->m_dYVel > this->m_dGravity;
706 else
707 return this->m_dYVel < this->m_dGravity;
708}
709
710void PlayerObject::collidedWithObject(float dt, GameObject* obj)
711{

Callers 1

updateJumpMethod · 0.95

Calls 1

isGravityFlippedMethod · 0.95

Tested by

no test coverage detected