has anyone made an API for rotation?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
slime
Solid Snayke
Posts: 3163
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: has anyone made an API for rotation?

Post by slime »

The half-width/height offset arguments essentially changes the love.graphics.draw function to use 'centric' coordinates, which match love.physics/box2d.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: has anyone made an API for rotation?

Post by BlackBulletIV »

Yes I know, and that's precisely why I'm adding half-width/height to the top-left coordinates to change them into centric coordinates.
LiquidDandruff
Prole
Posts: 18
Joined: Fri Dec 16, 2011 11:29 pm

Re: has anyone made an API for rotation?

Post by LiquidDandruff »

this topic clarified things a lot, thanks for the help
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 4 guests