OK, this is great, it works really well on it's own, thanks.
However, when I try to integrate it into my own program, it gives me an error message from the first line of the function - 'Vector does not exist' (this is the line of 'view matrix4 matrix'). I basically copied the code from your example, taking out the make matrix commands (as I already have one), and replacing the get ground height commands with 0 to start with (0 as the y coordinate), but it doesn't work.
As I don't understand any of the 3d math commands (I'm only 14!), I can't really debug it properly. Do you think you could put all of the commands into one function that would work in any program, so I would just need to call the function each loop? If you could do this that would be great.
Thanks, David
Spec - Abit NF7-S nForce 2, AMD Athlon 2100+, 256Mb PC2700, ATI Radeon 9000Pro, 20Gb Seagate U6, DVD-ROM, Zip 100, 15" TFT monitor