Game Development Community

Pointing the Camera

by Quentin Headen · in Torque Game Engine · 01/26/2008 (12:08 am) · 1 replies

I have a camera in my game that I want pointed at the car at all times. Is there any way I can get the camera to point at any object I please? Please let me know.

Thanks :)

About the author

Just your average programmer who tries to finish the projects he starts. :) I am currently focused on creating games with Torque engines. My website is http://phaseshiftsoftware.com


#1
01/26/2008 (6:39 am)
Try this and replace %this.player with the id of the object you want to point at.

%this.camera.setMode("Observer",%this.player);
%this.setControlObject(%this.camera);