kkwars
February 10, 2011, 1:07pm
1
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]
kkwars
February 10, 2011, 1:11pm
2
EDIT THE CODE IS :
THIS WORKS:
box = display.newRect(a,b,c,d)
box: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:rotate(whateverAngle)
[import]uid: 31779 topic_id: 6373 reply_id: 22030[/import]
kkwars
February 12, 2011, 4:36am
3
Guys this bug is a mass pain for us,
can we have support please ?? [import]uid: 31779 topic_id: 6373 reply_id: 22331[/import]
ewlloyd
February 13, 2011, 8:02pm
4
I just posted demo code for this to the bug tracker. This is an absolute showstopper for me – I’m dead in the water until this is resolved. [import]uid: 5169 topic_id: 6373 reply_id: 22636[/import]
kkwars
February 15, 2011, 2:02pm
5
Ok, good to hear I am not the only one stucked on this…
Hope for a quick fix [import]uid: 31779 topic_id: 6373 reply_id: 23039[/import]
Tim
February 15, 2011, 4:36pm
6
Hi, thanks for your input. This is a known issue (case 3560 in our internal bug base). I added this thread to the report.
Tim [import]uid: 8196 topic_id: 6373 reply_id: 23097[/import]