PDA

View Full Version : change the posistion in pointofView


Shushi88
04-28-2007, 10:11 AM
Hello, I am just wondering if you can help me in this part.:D Is it possible to edit the pointofView in properties of the object. This is because i want the object to return to it's original position as a next method. If this thread is a RTM:( ,please inform me which page in the "Learning to Program with Alice" and which section so that I will look it up in detail.

DrJim
04-28-2007, 10:34 AM
The quickest way to mark and return to a position is to drop a dummy object at another object that is in the position you want. The dummy object only has point of view information - but any time you want something to move to the position and orientation you've marked, you just set the POV to the dummy's value. You can also set position and orientation independently, and save "point of view" type variables in a list.

This isin't exactly what you asked but I know of no way to set the value of a point of view data type variable directly - and this will solve your problem. You can set position variables using a built-in function but I haven't found any way to use this information after it was set. :(

Shushi88
04-28-2007, 09:58 PM
Thank you for replying this post. Yes, the reply you gave me "nearly" answered my thread.:D But my "friend" challenge me that you can used only the object given and not adding it.:( To add salt to the wound,he said use
'variable method' and properties.) Generally i thought of putting a dummy but is it conflicting to condition that i write in this post?:confused: Thank you.

Shushi88
04-28-2007, 10:05 PM
Oh i forgot to mention that he also banned me for using "array and list" which makes my work easier.:eek: :eek:

DrJim
04-28-2007, 11:53 PM
I don't completely understand what you are trying to do, but if you are trying to change an objects point of view either (1) just by editing that property it it's property list or (2) directly setting the value of that property using a method or function - I don't believe that can be done in Alice.

The only ways I know to directly set the point of view of an object is to either move the object to a point - the obvious way :rolleyes: - or to set it's point of view equal to either that of another (real or dummy) object or to some objects previous point of view, which was earlier saved as a variable.

Shushi88
04-29-2007, 08:42 PM
Thanks for the info DrJim.:) :) :) :) :p :) :) :)

mlandis
07-25-2009, 10:39 AM
Actually, it's kind of tricky, but intuitive once you see how.

1) Move the camera to where you want an object to be, facing the direction you want it to face.

2) Drop a dummy there. That will have PoV info in it.

3) Move the camera elsewhere just for ease of reference

4) Select the object you want to move in the Object Tree. If you want to move a bunny, click on that bunny.

5) Look at the properties of the object you want to move (the bunny's property)

6) Drag the dummy you dropped in step 2 onto the PoV property for the selected object (bunny). It will copy the dummy's PoV onto the object's (bunny's) PoV.

Hope that helps!

Mike