camera shaking
by abc · in Torque Game Engine · 05/04/2003 (8:45 am) · 5 replies
I think I found a bug.
I was modifing the example "game" with Torque and I saw the camera shake function so I modified it so I really saw that it worked and then I saw that it doesn't work in 3rd person view, only with first person view. Shouldn't the camera shake in 3rd person view too?
I was modifing the example "game" with Torque and I saw the camera shake function so I modified it so I really saw that it worked and then I saw that it doesn't work in 3rd person view, only with first person view. Shouldn't the camera shake in 3rd person view too?
About the author
#2
05/04/2003 (10:39 am)
I belive that the "shake" should only be in 1st person, it is a design question, and I'm sure it can easily be fixed.
#3
05/04/2003 (10:58 am)
hmmm... ok, I thought it was a engine problem maybe it's not then.
#4
05/04/2003 (2:02 pm)
It works that way in Tribes 2 as well.
#5
is go into player.cc, find the following code:
if( connection->isFirstPerson() )
{
ShapeBase *obj = connection->getControlObject();
if( obj == this )
{
MatrixF curTrans = getRenderTransform();
curTrans.mul( gCamFXMgr.getTrans() );
Parent::setRenderTransform( curTrans );
}
}
and then comment out the if check (so that it always
executed whether its first person or not)
02/17/2005 (10:28 pm)
To add cameraFX to the third person all you have to dois go into player.cc, find the following code:
if( connection->isFirstPerson() )
{
ShapeBase *obj = connection->getControlObject();
if( obj == this )
{
MatrixF curTrans = getRenderTransform();
curTrans.mul( gCamFXMgr.getTrans() );
Parent::setRenderTransform( curTrans );
}
}
and then comment out the if check (so that it always
executed whether its first person or not)
Associate Kyle Carter
But for the demo, I'd think that yes, the camera ought to shake.