Comments (1)
You can check for collisions by calling the checkCollisions() method. If any
collisions are occuring while you do the check, then it will return an array
containing each collision (or an empty array if there are no collisions). Each
array item is an Object which contains information about the collision (the two
objects that collided, the amount of overlap, and the angle of the collision if
you're set up to calculate it).
All of this is covered in the documentation, which can be found here:
http://www.coreyoneil.com/Flash/CDK/documentation/
Some simple examples of checking for collisions and retrieving information
about the
collisions can be found in the docs here:
http://www.coreyoneil.com/Flash/CDK/documentation/CollisionList.html#Examples
Original comment by [email protected]
on 15 May 2009 at 8:00
- Changed state: Invalid
- Added labels: Type-Other
- Removed labels: Type-Defect
from collisiondetectionkit.
Related Issues (20)
- Need way to specify whether to include overlapping array HOT 2
- Call dispose() on BitmapData objects when done HOT 2
- Need way to define a 'Region of Interest' within which collissions are checked for HOT 2
- Ignore same object
- the projects slowdown after 10-20 seconds HOT 4
- Rotation isn't taken into account with the points returned from the collision.overlapping array HOT 2
- Predictive Collision Detection HOT 2
- Cannot detect collisions on display object if alpha is at zero HOT 1
- Wrong collisions detections, misses collisions
- Scaling the parent of objects in a collision list causes null object errors HOT 2
- Collisions not registering between dynamically created balls in Text example HOT 1
- No collisions found after scaling up a sprite's parent
- Object overlap while not showing any hit sign.
- Exclude Color (almost) not working HOT 3
- Code throws a lot of untyped warnings
- Children collisions are not detected correctly when the parent is rotated
- Mouse Down Event Not Firing When An Item Is Behind Another Item
- checkCollisions should return strongly typed Object HOT 3
- Need way to determine target in checkCollisions HOT 3
- Need way to specify whether to include overlapping array HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from collisiondetectionkit.