On Mon, Oct 13, 2008 at 4:38 PM, Kao Cardoso Felix <[EMAIL PROTECTED]> wrote:
>
> Hi folks,
>
> Just wondering... I've looked for it through the API and I didn't
> found a way to take a point defined on the coordinate system of a
> cocosnode and obtain the point relative to another cocosnode
> coordinate system.
>
> If there isn't a current standard way to do it would anyone else find
> this useful?
> And how you would sugest the API to look like?
>
> class CocosNode(object):
>    ...
>    def get_transformed_point(self, other, x, y):
>        ...
>
> or something like that is the way that occur to me, but it looks ugly.
>

What do you have in mind for this?

you cant really use this on step calls, because the real positions may
change later.

is this similar to having the transformation parameters available on
the "draw" calls?

Lucio.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to