Game Development Community

setOrbitObject not working as expected... please help!

by Dan T. · in Technical Issues · 10/22/2009 (10:50 pm) · 0 replies

Sooooo...
I can now set the camera to a top-down chase cam and still keep control of the player.
The way I do it is like this...

%client.camera.setOrbitObject(%client.player, "0 3 3", 0, 30, 30, false, "0 0 0", false);
%client.setCameraObject(%client.camera);
%client.setFirstPerson(false);

However, the vector used to set the rotation of the camera does nothing!
It works fine with the following code, which, alas, robs me of player control...

%client.camera.setOrbitObject(%client.player, "0 3 3", 0, 30, 30, false, "0 0 0", false);
%control = %client.camera;
%client.setControlObject(%control);

Any ideas why the rotational vector is not applied unless I use setControlObject?

Thanks,
Dan