I would like to implement a Camera chase mode. I have the 1st person and 3rd person
examples from gamestutorials.com but I can;t figure out how to do this. Basically I want to draw my object (plane) and wherever I go I want the object to be in my line of sight. Can someone please help me do this?
v1 = view point
v2 = object we are following
v3 = camera rotation.
gluLookAt(x1, y1, z1, x2, y2, z2, x3, y3, z3)
We just find v1 based on the position of v2 which is the object we are following.
Also we will have some distance to be keep between v1 and v2, and maybe some lag time during moving…
so v1 = v2 - distance + rotation vector of 180, since we will be looking from behind the object at all times.
Originally posted by fcoutel:
[b]Hi!
I would like to implement a Camera chase mode. I have the 1st person and 3rd person
examples from gamestutorials.com but I can;t figure out how to do this. Basically I want to draw my object (plane) and wherever I go I want the object to be in my line of sight. Can someone please help me do this?
Thanks![/b]
[This message has been edited by nexusone (edited 11-14-2002).]