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