Browse Source

RigidShape Mounting

OTHGMars 11 years ago
parent
commit
8c2d5ee82c
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Engine/source/T3D/rigidShape.cpp

+ 7 - 0
Engine/source/T3D/rigidShape.cpp

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