collision between images ( or sprites )

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
Posts: 1
Joined: Sun Nov 11, 2012 12:00 am

collision between images ( or sprites )

Post by guilherme » Sun Nov 11, 2012 12:08 am


At this link, we wave a example about physics in Love2d sure?,

Can we apply that code for a image or sprite instead only rectangles or circles?

I´m asking because the physics applied on that example using rectangles and circles is very good (including the response after the collision be detected), but i have never seen a example using images or sprites.

User avatar
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: collision between images ( or sprites )

Post by Boolsheet » Tue Nov 13, 2012 6:36 pm

If you want to create a shape other than a circle or rectangle, then you have to use polygon shapes. You may need more than one polygon to create the shape for the thing in the image.
Shallow indentations.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests