Game Development Community

RTS Kit RSTCamera Initial Position

by Robert Brower · in Torque Game Engine · 11/21/2007 (5:46 am) · 0 replies

Hi people. I purchased the RTS Kit. I'm using the RTSCamera object in TGE 1.4 (after porting as per forum comments). Looks and works good but I am having a little problem setting the initial position of the camera. The situation is like this. I am spawning an AIPlayer and I would like to setCameraPosition() to be 5 units in front of this unit. But I have problems finding the right place to call this function so that it works when the player first enters the game. The function doesn't seem to set the position although the orbit distance and angle functions seem to work. Can anyone help point me in the right direction? Thanks.

With regards,

Robert