Search the web
Sign In
New User? Sign Up
squeak
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Fwd: mailling squeak fé passé !merci   Message List  
Reply | Forward Message #94872 of 143989 |
Re: Fwd: mailling squeak fé passé !merci

François THIMON wrote:
> I have a morphic-problem :
>
> I created a robot-morph, with two eyes (submorphs) and I need to find the
> coordinates of the center of my eyes in the playfield (in order to find
> distance between my eyes and others morphs of the playfield).
>
> When heading=0, I use 'self x@self y' to find this point, and it work well,
but
> when my robot's heading is different from 0 it dont match, maybe because the
> referencePosition is 'wrong' (it's a kind of offset).
>
> So how can I find the true submorphs center coordinates when the owner got a
> transformationMorph on him?

Use "myMorph localPointToGlobal: myMorph center" to get the point within the
world.
Works for other local coordinates as well :-)

Cheers,
Hans-Martin




Tue May 24, 2005 5:05 pm

hmm@...
Send Email Send Email

Forward
Message #94872 of 143989 |
Expand Messages Author Sort by Date

I have a morphic-problem : I created a robot-morph, with two eyes (submorphs) and I need to find the coordinates of the center of my eyes in the playfield (in...
François THIMON
thimof@...
Send Email
May 24, 2005
2:43 pm

... Use "myMorph localPointToGlobal: myMorph center" to get the point within the world. Works for other local coordinates as well :-) Cheers, Hans-Martin...
Hans-Martin Mosner
hmm@...
Send Email
May 24, 2005
5:06 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help