player conformed to ground !?
by Billy L · in Torque Game Engine · 04/15/2003 (7:19 pm) · 3 replies
Hi all !
I tried the conform to ground tutorial !
But i cant get the camera shake smooth enoth !?
anyone have a clue ?
-Billy
I tried the conform to ground tutorial !
But i cant get the camera shake smooth enoth !?
anyone have a clue ?
-Billy
#2
But is there another way todo this with out the camera smooth
i really dont care if the camera follows the the player !
Only want the player to conform to the ground with the
default camera !
I tried to remove the camera smooth part but it didnt help !
04/15/2003 (9:33 pm)
Im no super coder Ben !But is there another way todo this with out the camera smooth
i really dont care if the camera follows the the player !
Only want the player to conform to the ground with the
default camera !
I tried to remove the camera smooth part but it didnt help !
#3
MatrixF currMatrix = getRenderTransform();
Point3F pos;
currMatrix.getColumn(3, &pos);
This position is the location of the player, and no matter his orientation, this should be the same, so just use that instead of the cam node to set the camera back.
04/15/2003 (10:15 pm)
With vehicles(and I believe players) when it grabs the camera transform it gets the world space location of the node named "Cam". One thing you might try, is to locate where it does that in the GetCameraTransform function, and instead of using "Cam" use:MatrixF currMatrix = getRenderTransform();
Point3F pos;
currMatrix.getColumn(3, &pos);
This position is the location of the player, and no matter his orientation, this should be the same, so just use that instead of the cam node to set the camera back.
Associate Kyle Carter
You might try adding 9's to the smoothing number, but you're probably going to have to rewrite some of the transformation generating code to fix the problem.