Hi All,
I am facing a problem when i try to rotate a rectangle around the
centerRightReferencePoint or Left and then rotate it,
its bounding box is not where it is supposed to be…
For example
THIS WORKS:
box = display.newRect(a,b,c,d)
box:object.boundingBox:rotate(whateverAngle)
the collision detection is handled as normal
THIS IS NOT WORKING:
box = display.newRect(a,b,c,d)
box:setReferencePoint(display.CenterRightReferencePoint)
box:object.boundingBox:rotate(whateverAngle)
the collision occuring on the box are wired, and misplaced
Hope to have support from you guys, this is an annoying problem !
For the moment I will work around the problem by creating a second box with the rotated one coordinates and delete the first one.
Thank you [import]uid: 31779 topic_id: 6373 reply_id: 306373[/import]