Need Help converting Camera Rot/ClipEnd [solved]

HI,

I’m having a go at writing a helper exporter for the car simulator Motorsport

I’m interesting in using empties to define grid positions and setting up track and/or car cameras. The exporter would write the appropriate section of the XML config file to be copy and pasted in.

The grid positions are OK, but the cameras are defined by a camera position and a look at position (like POVRAY I guess).

I think I can use the camera’s (rotation) matrix via getMatrix() and the clipend position to calculate the ‘look at’ position of the camera, but I haven’t got a clue how to do it (doing lots of google searchs for “rotation matrix tutorial simple”)!!

Please could someone explain how (if possible) to get the ‘look at’ position?

It was a lot simpler than that, I just had to use a polar to cartesian conversion.

Thanks Stephen[/b]