Search found 8 matches

by G.o.D
Mon Sep 05, 2011 4:26 pm
Forum: Support and Development
Topic: How to specify coordinates/center on PolygonShape
Replies: 5
Views: 3613

Re: How to specify coordinates/center on PolygonShape

arr, just fixed it if (i%2 == 1) then points[i]=v-minX else points[i]=v-minY end should be if (i%2 == 1) then points[i]=v-minX-halfX else points[i]=v-minY-halfY end the object was slightly off center, and together with the very low mass of the object, the movement looked totally wonky... a small lea...
by G.o.D
Mon Sep 05, 2011 4:13 pm
Forum: Support and Development
Topic: How to specify coordinates/center on PolygonShape
Replies: 5
Views: 3613

Re: How to specify coordinates/center on PolygonShape

That is exactly my point: how to i set the center of mass? The fileToPhysicsGetCenterOfPoly returns a number of values, including the half width and the most left point, which together i use on newBody() as the position, which i assumed is the center of mass, and then i draw the polygon shape around...
by G.o.D
Mon Sep 05, 2011 1:36 pm
Forum: Support and Development
Topic: How to specify coordinates/center on PolygonShape
Replies: 5
Views: 3613

Re: How to specify coordinates/center on PolygonShape

Thanx for the quick reply, didn't know of the vertex limit, good to know. The polygon in question is just a little 'out of shape' box, no convex polygons, 4 vertices. Collision shape does work, but its moving (actually rotating) fancy
by G.o.D
Mon Sep 05, 2011 1:16 pm
Forum: Support and Development
Topic: How to specify coordinates/center on PolygonShape
Replies: 5
Views: 3613

How to specify coordinates/center on PolygonShape

Hi, i am having trouble with the PolygonShape, i have polygon coordinates from a vector program, which are abolute point coordinates on the canvas. If i take them and draw a polygon via love.graphics.polygon i get exactly the shape i want. Now i want to use this polygon shape in a physics simulation...
by G.o.D
Fri Aug 19, 2011 6:36 am
Forum: Support and Development
Topic: love.filesystem.isDirectory in higher levels
Replies: 11
Views: 6269

Re: love.filesystem.isDirectory in higher levels

Not in SELÖVE you can't, and with good reason. While LÖVE malware is pretty rare right now, it does exist, and with our forumwide habit of downloading and running every .love we come across, that's a pretty big security hazard. well, that means... if i am a evil programmer, i go for glbasic or pure...
by G.o.D
Thu Aug 18, 2011 3:27 am
Forum: Support and Development
Topic: love.filesystem.isDirectory in higher levels
Replies: 11
Views: 6269

Re: love.filesystem.isDirectory in higher levels

so it is actually a bug in love.filesystem.enumerate? as it can read outside love and save directory? Anyway, this is a stupid restriction, if you can use lua io anyway, it doesnt really restrict the programmer from doing bad things if he really wants to - and actually its the job of the operating s...
by G.o.D
Wed Aug 17, 2011 2:23 pm
Forum: Support and Development
Topic: love.filesystem.isDirectory in higher levels
Replies: 11
Views: 6269

Re: love.filesystem.isDirectory in higher levels

well, it does read the directory, you can list its contents, it just fails to figure out if the read entry is a directory, i am not sure how this could be intentional
by G.o.D
Wed Aug 17, 2011 10:10 am
Forum: Support and Development
Topic: love.filesystem.isDirectory in higher levels
Replies: 11
Views: 6269

love.filesystem.isDirectory in higher levels

Hi, i have a problem with love.filesystem.isDirectory, i want to scan a directory with love.filesystem.enumerate that is higher then my game directory if i enumerate(""), isDirectory works, if i enumerate("mysubdirectory") it works too, but if i enumerate("../somediroutside&...