Reputation: 33
i have a question about android games.I cant make a collision between 2 objects.The rectangle collision seems work perfect in java but in android is not. I am using the intersect method to check collision.If you guys have some tips or answer to my question please feel free to tell me , i will appreciate all kind of help.Thanks in advance.
Upvotes: 0
Views: 1287
Reputation: 15052
Collision detection never has anything to do with the platform and language. The algorithm you use should work properly if it's a good one.
Here's an article to get you started and give you a good hint as to how to proceed about it.
There are certain libraries to help your cause.I recommend you to use the Box2d library.It is a physics engine with good support for collision. You can find an example on the front page of the site as well.
Upvotes: 1