Page 1 of 1

collision between images ( or sprites )

Posted: Sun Nov 11, 2012 12:08 am
by guilherme
Hello.

At this link, we wave a example about physics in Love2d sure?, https://love2d.org/wiki/Tutorial:Physics

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.

Re: collision between images ( or sprites )

Posted: Tue Nov 13, 2012 6:36 pm
by Boolsheet
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.