
Forum




Wall Collision Example
4 replies




This is a basic Version of collision detection

If you do not understand the basics as you intend to understand something more advanced, and if someone wants to help you, they must make what you are looking for compatible with what you already have.
edited 1×, last 06.07.20 01:51:19 am
I had some simple (very simple...) collision detection logic there. Not optimized or anything (except that the arrow checked for collision only on every 3rd tick (LINE 84))
You want a custom collision with an image. It's hard because:


And if you have too many custom collision objects, you will run into performance problems. So eventually you'd end up with AABB and other optimization techniques.
Have fun hacking!



