drmcnellis / collisiondetectionkit

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

Scaling the parent of objects in a collision list causes null object errors #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add displayobjects to a container displayobject
2. Setup a collision list for the display objects in the container
3. Change the scale of the container in realtime

What is the expected output? What do you see instead?
Until I started scaling the parent, everything worked fine
On calls to .checkCollisions() I get this error if the scale of the parent 
changes during runtime:
TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
    at flash.geom::Matrix/concat()

What version of the product are you using? On what operating system?
CDK Version 1.5
Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by NeoFox2...@gmail.com on 19 Jul 2011 at 3:48

GoogleCodeExporter commented 9 years ago
I tried adding null checks to the affected code in CDK.as, but now the 
collisions don't detect at the edge of the object but nearer its middle
And some don't detect at all

Original comment by NeoFox2...@gmail.com on 19 Jul 2011 at 6:10

GoogleCodeExporter commented 9 years ago
This feature doesn't seem to work. If you add the Puffin and waves into a 
container in the Overlap example, you will see that when you scale the parent, 
the pixel detection becomes wonky, and it detects less and less pixels, untill 
it eventually doesn't detect any (depending on how much you scale)

Original comment by sondun2...@gmail.com on 3 Aug 2011 at 3:38