Page 1 of 1

attaching an image with a body?

Posted: Sat Apr 10, 2010 12:40 am
by masterblade
Hi guys!

Is there a way to attaching an image to a body or a shape?

Re: attaching an image with a body?

Posted: Sat Apr 10, 2010 6:54 am
by bartbes
Using your own tables/objects/whatever-representation-you-use.
Internally love.graphics and love.physics are not connected. (on purpose)

Re: attaching an image with a body?

Posted: Sat Apr 10, 2010 10:49 am
by Robin
Drawing an image for a body goes something like this:

Code: Select all

love.graphics.draw(theimage, thebody:getX(), thebody:getY(), thebody:getAngle())