On Jul 29, 10:46 pm, Lucio Torre <[email protected]> wrote:
> On Wed, Jul 29, 2009 at 8:22 AM, jaber<[email protected]> wrote:
>
> > Using hud.py example in the svn, how do I get the position from mouse
> > coords to the scrolling layer? (like picking in 3d)
>
> You need to translate, rotate and scale the point to the layer that you want.
>
> Usually youd get an euclid matrix for each layer in the path from the
> scene to the layer you want and then multiply them all and then
> multiply that matrix and the mouse position.
>
> Or you can just do it by hand if you know you are only scrolling the
> layer (x -= layer.x)
>
> Lucio.
How do I get and multiply/use the euclid matrix
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cocos2d discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---