Game Development Community

Rotating Orbit Camera around player

by Enel · in Torque 3D Professional · 06/23/2010 (3:20 am) · 1 replies

i add this code on script
%this.setControlObject(%this.player);
   %this.setCameraObject(%this.camera);
   %this.setFirstPerson(false);
   %this.camera.setOrbitObject(%player, mDegToRad(50) @ " 0 0", 2, 15, 5);

but it is just look at Player object.

yaw & pitch of camera dosent work

and i change bottom code but rotation of camera dosent update

//void ClientProcessList::onTickObject
		 if( obj->mProcessTick ){
                      obj->processTick(movePtr);
                      con->getCameraObject()->processTick(movePtr);
		 }


why dosent update camera rotation?

#1
06/23/2010 (3:27 am)
omg.. i solved it!

need to same update to SereverProcessList::onTickObject
if( obj->mProcessTick ){
   obj->processTick(movePtr);
   con->getCameraObject()->processTick(movePtr);
}

:)