Game Development Community

Trouble adapting custom camera system using T3D Tactics Tutorial

by Alkor · in Torque 3D Professional · 10/03/2011 (12:09 pm) · 3 replies

Hello

I am having quite some trouble adapting the custom camera system developed especially in this link:

http://tdn.garagegames.com/wiki/T3D/Tutorials/Tactics-Action_GameType_Tutorial/Part3

I want to adapt it not to rotate around a player, but around a custom mesh that I load into the game.
Any idea how I do this?

#1
10/03/2011 (5:01 pm)
If the object (mesh) has a name you should be able to pass the name of the object to the orbitObject function. In theory you could have the camera orbit a spawnpoint or some other invisible object as well. How it will handle control objects is another question....
#2
10/06/2011 (5:39 am)
Well, I think that is somewhat covered in the tutorial.
So I can access the name of my object from any script basically?
#3
10/06/2011 (7:01 am)
Ensure that it has a name - most objects do not by default. You can check it in the editor by selecting it and ensuring that the name property is not blank.

If it has a name you can access it from script, just be aware of client/server scoping issues.