Sorry...
I would like for them to move parallel to each other. So, when the
user selects a group of objects, they move as a group in their same
positions relative to each other.
What I can't seem to get beyond is either objects "flip" positions
(objects below and to the right get flipped to above and to the left
of the last object selected), or their positions get inverted and they
orbit a position equidistant between them.
The math I cooked up to do this is (in awful psuedocode):
(Object(0).Orig(X, Y) - Object(0).New(X, Y)) + Object(n).(X, Y)
I'm sure there's something fundamental I'm missing here...
Thanks!
On 3/30/06, Joseph J. Strout <joe at strout dot net> wrote:
> At 9:46 PM -0500 3/30/06, Philip Regan wrote:
>
> >I've been wracking my brain for two days now, and I just can't figure
> >this out. What's the 2D math to have two or more object relative to
> >each other?
>
> What do you mean by that? If either of two objects is moving, then
> they're always moving relative to each other in some way. What
> specific sort of motion are you looking for?
>
> Best,
> - Joe
>
> --
>
> Joseph J. Strout
> joe at strout dot net
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives of this list here:
> <http://support.realsoftware.com/listarchives/lists.html>
>
--
--
Philip Regan
pregan at gmail dot com
http://homepage.mac.com/pregan
REALBasic 2005r4, Applescript
Mac OS 10.3.9
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|