Angle camera to always point at player.
by Anthony Merlo · in Torque 3D Professional · 04/04/2011 (2:01 pm) · 1 replies
Working in script I was able to change the camera view to where I want. Sort of and extended 3rd person or GOD like view mode. The problem is that the camera only points on a flat plane and I want it to point down at the player. That way if I alter the camera hight or distance I will still be able to view the player.
My goal is to eventually have the player controlling the camera and the character turning to follow the camera's rotation. Sort of like 3rd person view in Worlds of Warcraft.
Here is the code I'm using:
I tried changing the rotation (second argument) but it doesn't seem to do anything.
Any help would be appreciated.
Thanks!
My goal is to eventually have the player controlling the camera and the character turning to follow the camera's rotation. Sort of like 3rd person view in Worlds of Warcraft.
Here is the code I'm using:
LocalClientConnection.camera.setOrbitObject(LocalClientConnection.player, "0 0 0", "0", "0", "0", false, "0 -20 4", false);
I tried changing the rotation (second argument) but it doesn't seem to do anything.
Any help would be appreciated.
Thanks!
About the author
Torque 3D Owner Anthony Merlo
Is there a way to make the camera orbit around the player from any other angle?
Thanks