3rd person camera
by Vasilios Hioureas · in Torque X 3D · 02/19/2010 (5:21 am) · 4 replies
I wanted to see if anyone knows a good way to automatically move the camera so that no object is in the way of you and the camera.
for example:
On the FPS demo, if you go into 3rd person, and you walk backwards towards a wall, the camera automatically zooms towards you, it doesent go behind the wall and allow the wall to be between the camera and the payer.
thank you
for example:
On the FPS demo, if you go into 3rd person, and you walk backwards towards a wall, the camera automatically zooms towards you, it doesent go behind the wall and allow the wall to be between the camera and the payer.
thank you
About the author
#2
Does anyone know where in the code, the FPS demo deals with this.
02/19/2010 (6:06 am)
Now what about if there is something in the way of me and the camera, but there is no collision to the camera. Any ideas on how I would deal with that. Is there maybe something I can do with raycasting. Does anyone know where in the code, the FPS demo deals with this.
#3
02/19/2010 (7:48 am)
A ray would fix that only if you had a collision shape on the object.
#4
03/12/2010 (1:21 am)
I casted a ray towards the player and did the neccesary calculations and It worked. If anyone runs into this problem and needs help, let me know and I will show you what I figured out.
Torque Owner Trent