[ODE] camera position

first@cove.org first at cove.org
Wed Mar 12 23:14:01 2003


Experimenting with the test_buggy demo. I'm setting the camera position by
calling dsSetViewpoint(xyz, hpr). I would like to set the heading of the
camera to be the same as the z rotation of the buggy chassis.

I converted the matrix info from dBodyGetRotation(body[0]) into a euler
angle with some success, but should I do this? Is there a way to use the
matrix info directly to position the camera?

Thanks
Alec