Thanks Canepa.

But seems get_rect() doesn’t work well when image_anchor is not (0, 0), that’s 
why?


From: claudio canepa
Sent: 2018年7月17日 23:12
To: cocos2d discuss
Subject: Re: Difference between get_rect() and get_AABB() for Sprite

get_rect does not handle sprite rotations, get_AABB accounts for rotations.
Examples:
    test\test_rect.py
    test\test_sprite_aabb.py

   




On Tue, Jul 17, 2018 at 9:12 AM, <[email protected]> wrote:
I have checked the online document for Sprite introduction, but still confused 
about the two functions difference.

So, could someone explain to me the detailed differences for them?

Thank you so much.

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/cocos-discuss.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/cocos-discuss.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/cocos-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to