mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
ShapeBase Mounting
Added mount transforms to ShapeBase
This commit is contained in:
parent
172e62a8f1
commit
b5a957dfdc
1 changed files with 12 additions and 0 deletions
|
|
@ -1324,6 +1324,12 @@ void ShapeBase::processTick(const Move* move)
|
|||
if (mWhiteOut <= 0.0)
|
||||
mWhiteOut = 0.0;
|
||||
}
|
||||
|
||||
if (isMounted()) {
|
||||
MatrixF mat;
|
||||
mMount.object->getMountTransform( mMount.node, mMount.xfm, &mat );
|
||||
Parent::setTransform(mat);
|
||||
}
|
||||
}
|
||||
|
||||
void ShapeBase::advanceTime(F32 dt)
|
||||
|
|
@ -1382,6 +1388,12 @@ void ShapeBase::advanceTime(F32 dt)
|
|||
mFadeVal = 1 - mFadeVal;
|
||||
}
|
||||
}
|
||||
|
||||
if (isMounted()) {
|
||||
MatrixF mat;
|
||||
mMount.object->getRenderMountTransform( 0.0f, mMount.node, mMount.xfm, &mat );
|
||||
Parent::setRenderTransform(mat);
|
||||
}
|
||||
}
|
||||
|
||||
void ShapeBase::setControllingClient( GameConnection* client )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue