Collision detection using Mask

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
reno57
Prole
Posts: 17
Joined: Thu Apr 14, 2016 9:46 pm

Collision detection using Mask

Post by reno57 » Sat Feb 24, 2018 4:39 pm

Hi all,

I'm trying to know if there is a possible way to do a collision detection using bitmap masks to achieve a pixel perfect collision system without to much calculations.
According to what i've seen in the forum, it seems that love2D can't manage bitmap mask.
If it's true, do you know another way to achieve pixel perfect collision between irregular shapes.

Thanks in advance.

User avatar
pgimeno
Party member
Posts: 1377
Joined: Sun Oct 18, 2015 2:58 pm

Re: Collision detection using Mask

Post by pgimeno » Sat Feb 24, 2018 7:35 pm

My Thrust II Reloaded project handles pixel-perfect collisions. See my sig.
Thrust II Reloaded - GifLoad for Löve - GSpöt GUI - My NotABug.org repositories - portland (mobile orientation)
The MS-Github repositories I had have been closed after the acquisition announcement and will be removed in the near future.

reno57
Prole
Posts: 17
Joined: Thu Apr 14, 2016 9:46 pm

Re: Collision detection using Mask

Post by reno57 » Sat Feb 24, 2018 8:28 pm

Thanks pigmeno. I will look at your code.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests