mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
add an explicit interpolatetick back in to flyingvehicle
fixe sounds not moving along with it
This commit is contained in:
parent
23895e365a
commit
2c21c4ebd7
2 changed files with 10 additions and 0 deletions
|
|
@ -404,8 +404,17 @@ void FlyingVehicle::onRemove()
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
void FlyingVehicle::interpolateTick(F32 dt)
|
||||||
|
{
|
||||||
|
PROFILE_SCOPE(FlyingVehicle_InterpolateTick);
|
||||||
|
Parent::interpolateTick(dt);
|
||||||
|
updateEngineSound(1);
|
||||||
|
updateJet(dt);
|
||||||
|
}
|
||||||
|
|
||||||
void FlyingVehicle::advanceTime(F32 dt)
|
void FlyingVehicle::advanceTime(F32 dt)
|
||||||
{
|
{
|
||||||
|
PROFILE_SCOPE(FlyingVehicle_AdvanceTime);
|
||||||
Parent::advanceTime(dt);
|
Parent::advanceTime(dt);
|
||||||
|
|
||||||
updateEngineSound(1);
|
updateEngineSound(1);
|
||||||
|
|
|
||||||
|
|
@ -187,6 +187,7 @@ class FlyingVehicle: public Vehicle
|
||||||
|
|
||||||
bool onAdd();
|
bool onAdd();
|
||||||
void onRemove();
|
void onRemove();
|
||||||
|
void interpolateTick(F32 dt);
|
||||||
void advanceTime(F32 dt);
|
void advanceTime(F32 dt);
|
||||||
|
|
||||||
void writePacketData(GameConnection *conn, BitStream *stream);
|
void writePacketData(GameConnection *conn, BitStream *stream);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue