Game Development Community

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

#1
04/15/2003 (7:35 pm)
There are some numerical instability issues with the conform-to-ground resource. I tried to sort them out (with help from the resource's author), but couldn't get them quite ironed out.

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.
#2
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
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.