mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Camera Mounting
This commit is contained in:
parent
cd3b080526
commit
3afd5461c6
|
|
@ -495,13 +495,6 @@ void Camera::processTick(const Move* move)
|
|||
|
||||
if ( isMounted() )
|
||||
{
|
||||
// Fetch Mount Transform.
|
||||
MatrixF mat;
|
||||
mMount.object->getMountTransform( mMount.node, mMount.xfm, &mat );
|
||||
|
||||
// Apply.
|
||||
setTransform( mat );
|
||||
|
||||
// Update SceneContainer.
|
||||
updateContainer();
|
||||
return;
|
||||
|
|
@ -868,16 +861,7 @@ void Camera::interpolateTick(F32 dt)
|
|||
Parent::interpolateTick(dt);
|
||||
|
||||
if ( isMounted() )
|
||||
{
|
||||
// Fetch Mount Transform.
|
||||
MatrixF mat;
|
||||
mMount.object->getRenderMountTransform( dt, mMount.node, mMount.xfm, &mat );
|
||||
|
||||
// Apply.
|
||||
setRenderTransform( mat );
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Point3F rot = mDelta.rot + mDelta.rotVec * dt;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue