drmcnellis / collisiondetectionkit

Automatically exported from code.google.com/p/collisiondetectionkit
0 stars 0 forks source link

No collisions found after scaling up a sprite's parent #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create Canvas1.
2. Create Canvas2 (alpha=0) and put it on Canvas1.
3. Create Canvas3 (alpha=0) and put it on Canvas2.
4. Create Sprite1 and put it on Canvas3.(Canvas3.rowChildren.addChild(Sprite1))
5. Create Canvas4 (alpha=0) and put it on Canvas1.
6. Create Canvas5 (alpha=0) and put it on Canvas4.
7. Create Sprite2 and put it on Canvas5.(Canvas5.rowChildren.addChild(Sprite2))
8. Scale up Canvas5.
9. Change Canvas4's size/position properties to make it fit a new Canvas5's 
size.
10. Move Canvas4 until it overlaps Canvas2.
11. collisionGroup.addItem(Sprite1); collisionGroup.addItem(Sprite2);
12. var collisions:Array = collisionGroup.checkCollisions();
13. collisions.length == 0

What is the expected output? What do you see instead?
expected: collisions.length > 0
see: collisions.length == 0

What version of the product are you using? On what operating system?
CDK 1.5.0 , MS Windows Server 2003, Flex 3 (SDK 3.5.0)

Please provide any additional information below.
Scaling down and rotation seems to work perfect. Skewing fails the same way as 
scaling up.

Original issue reported on code.google.com by xronos....@gmail.com on 18 Aug 2011 at 1:13