Made flyable use getXYZ everywhere (instead of the position

from the physical body, so changes to the position were not
picked up as expected).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9961 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-10-10 04:26:40 +00:00
parent 9d26f87217
commit 0ff8f8ab8b

View File

@ -335,7 +335,8 @@ bool Flyable::updateAndDelete(float dt)
if(m_has_hit_something) return true; if(m_has_hit_something) return true;
Vec3 xyz=getBody()->getWorldTransform().getOrigin(); //Vec3 xyz=getBody()->getWorldTransform().getOrigin();
const Vec3 &xyz=getXYZ();
// Check if the flyable is outside of the track. If so, explode it. // Check if the flyable is outside of the track. If so, explode it.
const Vec3 *min, *max; const Vec3 *min, *max;
World::getWorld()->getTrack()->getAABB(&min, &max); World::getWorld()->getTrack()->getAABB(&min, &max);