View Full Version : Rotate the camera around an object
joeboy68
12-08-2005, 02:31 PM
Im trying to make a camer method that rotates around a given object for x amount of rotations. any idea how to do so?
kingsamses
12-08-2005, 03:26 PM
Tell the camera to rotate "as seen by" your object when facing it. "As seen by" is in the more menu of a command.
joeboy68
12-08-2005, 03:59 PM
Here is waht i have so far:
while(true){
doTogehter{
camera.turnToFace(Target);
camera.move(LEFT, 0.5 meters);
}
}
and putting the as seen by on the move method, but all it did was move the camera away. and i tried it on the turn to face, and it didnt make any difference
kingsamses
12-09-2005, 12:31 PM
Just have the camera poined at the object, then use the command:
[camera] rotate [1 revolution] asSeenBy [object] more...v
I don't know if it looks exactly like that or not as I do not have Alice available to me at the moment, but the code should look similar to that in normal code mode.
joeboy68
12-09-2005, 05:12 PM
thank you! that works perfectly