Alice Community  

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

Reply
 
Thread Tools Display Modes
How do you use a position
Old
JungleJim
Guest
 
Status:
Posts: n/a
Default How do you use a position - 07-04-2007, 12:29 PM

How do you move an object to a position object saved in a variable? You can produce a position object from its x,z,y coordinates using a nifty method in the world object whose name is ,, (yes - TWO commas) - look at the very bottom of the list of world functions. But what good is it? How do you move an object to have that position. There is no "move to position" method.

ANSWER:

Use a: your-object + move to + world action tile and click on the more... button in that tile and select position and then any value you want. Then drag the variable holding the position you want to use over the offset parameter.

Last edited by JungleJim; 07-04-2007 at 02:37 PM.
   
Reply With Quote
Old
DickBaldwin
Guest
 
Status:
Posts: n/a
Default 07-04-2007, 02:03 PM

Thanks for posting. This very useful information.
Dick Baldwin
   
Reply With Quote
Thanks - a real timesaver
Old
DrJim
Guest
 
Status:
Posts: n/a
Thumbs up Thanks - a real timesaver - 07-04-2007, 05:45 PM

A great discovery!

The following screenshot illustrates the "drag and drop" details.
Attached Images
File Type: jpg Move to Position.JPG (21.4 KB, 130 views)
   
Reply With Quote
Position Array failure
Old
JungleJim
Guest
 
Status:
Posts: n/a
Default Position Array failure - 07-05-2007, 12:20 PM

Trying to store a Position as an item in an array OF positions causes the mean queen to appear. See Below. Anyone know why or how to work around it (other than having seperate Number arrays for x,z, and y).

world.my first method no parameters
--------------------
*posary = Vector(0,0,0),Vector(0,0,0)
--------------------
set item 0 to right=1 , up=2 , forward=3 in posary more
--------------------

Last edited by JungleJim; 07-13-2007 at 11:20 AM. Reason: forgot attachment
   
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 ©2022, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.