mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
SpawnSphere Mounting
This commit is contained in:
parent
3afd5461c6
commit
a285b7b07b
|
|
@ -442,22 +442,12 @@ void SpawnSphere::unpackUpdate(NetConnection * con, BitStream * stream)
|
|||
|
||||
void SpawnSphere::processTick( const Move *move )
|
||||
{
|
||||
if ( isServerObject() && isMounted() )
|
||||
{
|
||||
MatrixF mat( true );
|
||||
mMount.object->getRenderMountTransform( 0.f, mMount.node, mMount.xfm, &mat );
|
||||
setTransform( mat );
|
||||
}
|
||||
Parent::processTick( move );
|
||||
}
|
||||
|
||||
void SpawnSphere::advanceTime( F32 timeDelta )
|
||||
{
|
||||
if ( isMounted() )
|
||||
{
|
||||
MatrixF mat( true );
|
||||
mMount.object->getRenderMountTransform( 0.f, mMount.node, mMount.xfm, &mat );
|
||||
setTransform( mat );
|
||||
}
|
||||
Parent::advanceTime( timeDelta );
|
||||
}
|
||||
|
||||
void SpawnSphere::initPersistFields()
|
||||
|
|
|
|||
Loading…
Reference in a new issue