collision between images ( or sprites )

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

collision between images ( or sprites )

Post 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.
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: collision between images ( or sprites )

Post 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.
Shallow indentations.
Post Reply

Who is online

Users browsing this forum: No registered users and 81 guests