Get current X and Y positions of the physics shape instead of the image.

Hi there,

I have a situation where I want to get the collision side between two objects.

My actual function is almost working OK, I just get the bodies x,y positions and compare them to define the side of the collision.

The problem is when I have to detect the collision side between shaped physics bodies.

When the bodies shape sizes is lower than the bodies images size, and I use body.x or body.y It returns me the image x or y instead of the shape x,y.

Is there any way to get the physics shape x,y instead of the image's x,y?

INFO: the shape is the physics collision body that can be viewed on debug or hybrid drawMode.

Thanks.

Bruna

views:1563 update:2012/2/7 8:40:54
corona forums © 2003-2011