mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-05 21:40:31 +00:00
Vehicle Mounting
This commit is contained in:
parent
a27fddc29a
commit
937b8830e1
1 changed files with 4 additions and 0 deletions
|
|
@ -859,6 +859,8 @@ void Vehicle::processTick(const Move* move)
|
|||
PROFILE_SCOPE( Vehicle_ProcessTick );
|
||||
|
||||
Parent::processTick(move);
|
||||
if ( isMounted() )
|
||||
return;
|
||||
|
||||
// Warp to catch up to server
|
||||
if (mDelta.warpCount < mDelta.warpTicks)
|
||||
|
|
@ -929,6 +931,8 @@ void Vehicle::interpolateTick(F32 dt)
|
|||
PROFILE_SCOPE( Vehicle_InterpolateTick );
|
||||
|
||||
Parent::interpolateTick(dt);
|
||||
if ( isMounted() )
|
||||
return;
|
||||
|
||||
if(dt == 0.0f)
|
||||
setRenderPosition(mDelta.pos, mDelta.rot[1]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue