Fixed upright constraint, which prevents karts from toppling over when
jumping (e.g. paper plane in math class). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6147 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
d62e1f659d
commit
351a69adfe
@ -608,7 +608,7 @@ bool Kart::isNearGround() const
|
||||
if(getHoT()==Track::NOHIT)
|
||||
return false;
|
||||
else
|
||||
return ((getXYZ().getZ() - getHoT()) < stk_config->m_near_ground);
|
||||
return ((getXYZ().getY() - getHoT()) < stk_config->m_near_ground);
|
||||
} // isNearGround
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user