Search found 3 matches

by dad
Mon Jan 06, 2025 6:42 pm
Forum: Support and Development
Topic: Font rotation & anchor point
Replies: 3
Views: 688

Re: Font rotation & anchor point

I think what you're asking for is something like this: local canvas = love.graphics.newCanvas(r* 2, r * 2) function love.load() love.graphics.setCanvas(canvas) DrawString("Hello, World!", r, r, r) love.graphics.setCanvas() end function love.draw() love.graphics.draw(canvas, 0, 0) end So th...
by dad
Mon Jan 06, 2025 6:18 pm
Forum: Support and Development
Topic: boundingBox curiosity
Replies: 2
Views: 710

Re: boundingBox curiosity

Thanks for the reply RNavega. You got me on the right track. I found the source of the issue between these two chunks of code: https://github.com/love2d/love/blob/6807e54bab3a080b7ac3f75ac8c02d1c00fd8f67/src/libraries/Box2D/Common/b2Settings.h#L80 https://github.com/love2d/love/blob/6807e54bab3a080b...
by dad
Thu Jan 02, 2025 6:18 pm
Forum: Support and Development
Topic: boundingBox curiosity
Replies: 2
Views: 710

boundingBox curiosity

Anyone know why the bounding box doesn't match the size of the rectangle (or polygon) shape that is applied? It seems to add 0.6m to both the width and the length of the shape to the bounding box (regardless of the width and height used). Code: local x, y = 20, 20 local w, h = 10, 8 local world = lo...