RigidShape Mounting

This commit is contained in:
OTHGMars 2014-06-18 19:32:39 -04:00 committed by Azaezel
parent 16c547306f
commit 8c2d5ee82c

View file

@ -732,6 +732,8 @@ void RigidShape::onRemove()
void RigidShape::processTick(const Move* move)
{
Parent::processTick(move);
if ( isMounted() )
return;
// Warp to catch up to server
if (mDelta.warpCount < mDelta.warpTicks)
@ -795,6 +797,8 @@ void RigidShape::processTick(const Move* move)
void RigidShape::interpolateTick(F32 dt)
{
Parent::interpolateTick(dt);
if ( isMounted() )
return;
if(dt == 0.0f)
setRenderPosition(mDelta.pos, mDelta.rot[1]);
@ -814,6 +818,9 @@ void RigidShape::advanceTime(F32 dt)
updateFroth(dt);
if ( isMounted() )
return;
// Update 3rd person camera offset. Camera update is done
// here as it's a client side only animation.
mCameraOffset -=