Re: Set Location of new object to location of parents at collision

Alan Stafford <[email protected]> Sun, 18 Sep 2005 11:05:06 +0100
Newsgroups gmane.comp.breve
Message-ID <[email protected]>
Thanks Jon, this worked as stated.

Alan
On 17 Sep 2005, at 16:21, jon klein wrote:

>
> On Sep 17, 2005, at 8:56 AM, Alan Stafford wrote:
>
>> How do you get the current physical location of an Object derived 
>> from the Wander class?
>> I want to set the location of a new wander object formed at the 
>> collision of two objects to the location of the collision.
>
> The Mobile method "get-location" will give the location of any Mobile 
> object (including Wanderer, which is a subclass of Mobile).  Your code 
> might look something like:
>
> newObject move to (self get-location).
>
> - jon klein
> _______________________________________________
> breve mailing list
> [email protected]
> http://lists.spiderland.org/mailman/listinfo/breve
>

_______________________________________________
breve mailing list
[email protected]
http://lists.spiderland.org/mailman/listinfo/breve