Search found 3 matches

by worfox
Sun Apr 18, 2010 1:59 am
Forum: Support and Development
Topic: Topleft corner...
Replies: 12
Views: 3227

Re: Topleft corner...

I think what you need to do is to use the offset parameters in love.graphics.draw(): http://love2d.org/wiki/love.graphics.draw Thanks Robin, it works :ultrahappy: How it could work: the love.load part: box = {} box.img = love.graphics.newImage("img/box.png") --has to be a cube box.body = love.physi...
by worfox
Sat Apr 17, 2010 11:52 pm
Forum: Support and Development
Topic: Topleft corner...
Replies: 12
Views: 3227

Re: Topleft corner...

nevon wrote:You rotate the image by the same angle that the body is rotated.
That's what I did, but it rotates around the topleft corner of the BoundingBox. I need the topleft corner of the shape!
by worfox
Sat Apr 17, 2010 10:52 pm
Forum: Support and Development
Topic: Topleft corner...
Replies: 12
Views: 3227

Topleft corner...

Hey, im new here and I got a problem: I've got a box shape with a body, and now I want to draw an img over it. I can get the topleft corner with shape:getBoundingBox() if the angle is 0 of the body. How can I get the topleft corner of a shape, even if it is rotated? http://dl.dropbox.com/u/6228197/b...