Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Rotate the camera around an object
Old
joeboy68
Guest
 
Status:
Posts: n/a
Default Rotate the camera around an object - 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?
   
Reply With Quote
Old
kingsamses
Guest
 
Status:
Posts: n/a
Default 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.
   
Reply With Quote
Old
joeboy68
Guest
 
Status:
Posts: n/a
Default 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
   
Reply With Quote
Old
kingsamses
Guest
 
Status:
Posts: n/a
Default 12-09-2005, 12:31 PM

Just have the camera poined at the object, then use the command:

Code:
[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.
   
Reply With Quote
Old
joeboy68
Guest
 
Status:
Posts: n/a
Default 12-09-2005, 05:12 PM

thank you! that works perfectly
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.