Search found 4 matches

by jbm222
Sat Apr 24, 2010 6:50 am
Forum: Support and Development
Topic: tiny bodies breaking physics engine
Replies: 7
Views: 1546

Re: tiny bodies breaking physics engine

The smallest "safe" object is .1 X .1 units, and that should be your cutoff point, by default LÖVE scale is 30px/unit, thus 3X3 pixels is the default minimum. My code was based on a tutorial which set the scale to 64px/unit. I added a check that would force the smallest objects to 4x4, but I guess ...
by jbm222
Fri Apr 23, 2010 5:44 pm
Forum: Support and Development
Topic: tiny bodies breaking physics engine
Replies: 7
Views: 1546

tiny bodies breaking physics engine

The attached lvledit.love is a wysiwyg level editor in its infant stages. Use the arrow keys to move the ball around. Left-click and drag to draw rectangles. Use the scroll wheel to switch between "fixed" (i.e. object that don't move) and "mobile" objects. So here's the problem... when I draw really...
by jbm222
Fri Apr 23, 2010 6:14 am
Forum: Support and Development
Topic: Trouble with PolygonShape:GetPoints
Replies: 3
Views: 1257

Re: Trouble with PolygonShape:GetPoints

Dumb mistake.... I tried to do myShape.getPoints() instead of myShape:getPoints(). Told you I'm new to lua.
by jbm222
Fri Apr 23, 2010 5:43 am
Forum: Support and Development
Topic: Trouble with PolygonShape:GetPoints
Replies: 3
Views: 1257

Trouble with PolygonShape:GetPoints

So I'm having trouble with PolygonShape:getPoints(). I'm trying to call the function like so: love.graphics.polygon("fill", myShape:getPoints()) The error I see is "Incorrect Parameter Type : Expected User Data" Any suggestions? I should mention that even though I've been programming for several yea...