Morphic Heirarchy.
Ned Konz
ned at squeakland.org
Thu Dec 2 22:34:43 UTC 2004
On Thursday 02 December 2004 10:37 am, Ryan Zerby wrote:
> Is there someway that I can set the origin of a morphs local
> coordinate system, so that all of
> it's submorphs use the local coordinate system, rather than the global
> system? Currently, I
> pass an offset down the tree every time I run 'step.' Changing the
> local coordinate system
> seems more object oriented to me (rather than having to know about the
> actual location of my parent, I should be able to just move relative
> to the parent).
This is what TransformMorph and TransformationMorph do; they hold a local
transform and convert to their own coordinate space when talking to their
submorphs.
--
Ned Konz
http://bike-nomad.com/squeak/
More information about the Squeak-dev
mailing list
|