mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
RigidShape Mounting
This commit is contained in:
parent
16c547306f
commit
8c2d5ee82c
1 changed files with 7 additions and 0 deletions
|
|
@ -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 -=
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue