IrinaTheNerd / collisiondetectionkit

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

Need way to specify whether to include overlapping array #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This is related to:

http://code.google.com/p/collisiondetectionkit/issues/detail?id=9

checkCollisions should include an option to not look up collision angles. The 
code in findAngle can 
be processor intensive, and this would provide a way to not take the CPU hit 
when the angle data is 
not needed.

checkCollisions(includeAngle:Boolean = true):Array

Original issue reported on code.google.com by mikechambers on 22 Jun 2009 at 12:04

GoogleCodeExporter commented 8 years ago
This title is wrong. It should be:

Need way to specify whether to include Angle data

Original comment by mikechambers on 22 Jun 2009 at 12:05

GoogleCodeExporter commented 8 years ago
This is already available via the returnAngle property.  It's a Boolean that 
determines whether or not the CDK finds the angle of collision.  If you set it 
to 
false, then the angle returned in the checkCollisions() objects will always be 
0.

It can be seen here in the docs: 
http://www.coreyoneil.com/Flash/CDK/documentation/CollisionList.html#returnAngle

...though the documentation is incorrect in that it says the default is false.  
The 
default for returnAngle as of version 1.5 is true.

Original comment by lessthan...@gmail.com on 22 Jun 2009 at 7:48