Nice, that did the trick.
Thanks slime!
Search found 7 matches
- Fri Mar 07, 2014 6:32 pm
- Forum: Support and Development
- Topic: PolygonShape size issues?
- Replies: 2
- Views: 1644
- Fri Mar 07, 2014 5:56 pm
- Forum: Support and Development
- Topic: PolygonShape size issues?
- Replies: 2
- Views: 1644
PolygonShape size issues?
Hey guys, currently I'm experiencing some troubles with newPolygonShape() e.g. test = love.physics.newPolygonShape(0,0,0,3,3,3,3,0) Does not work, gives "Box2D assertion failed: false" error test = love.physics.newPolygonShape(0,0,0,4,4,4,4,0) Does work. It seems height/width of a PolygonS...
- Thu May 03, 2012 1:59 pm
- Forum: Support and Development
- Topic: Errors with newPolygonShape
- Replies: 4
- Views: 3609
Re: Errors with newPolygonShape
That's what I suspected. But the bodies with several shapes seem to occasionally collapse into each other, which does not happen with the single-shape bodies. When this happens, it looks like, for example, that the long end of the first "L"-Body sits right between the edge of the long and ...
- Thu May 03, 2012 12:02 pm
- Forum: Support and Development
- Topic: Errors with newPolygonShape
- Replies: 4
- Views: 3609
Re: Errors with newPolygonShape
Ah I see, I did not think of convex / concave polygons. What would be more efficient, making two shapes, and adding them to the same body with two different fixtures OR making two body, each with one shape, each with one fixture, and then combine the two bodies with the newWeldJoint function? Becaus...
- Thu May 03, 2012 10:20 am
- Forum: Support and Development
- Topic: Errors with newPolygonShape
- Replies: 4
- Views: 3609
Errors with newPolygonShape
Hey there, I'm having a hard time with the newPolygonShape function. It keeps throwing me an error like "area > b2_epsilon", and don't quite know why. I am trying to make an "L"-Shape. This line here works without any problems (but lacks the last edge I need for the "L"...
- Tue May 01, 2012 12:58 pm
- Forum: Support and Development
- Topic: Cannot execute testSegment - it is nil ?!
- Replies: 4
- Views: 2060
Re: Cannot execute testSegment - it is nil ?!
Alright, thanks! Will try to build with the RayCasts.
Cheers,
Cheers,
- Mon Apr 30, 2012 9:51 pm
- Forum: Support and Development
- Topic: Cannot execute testSegment - it is nil ?!
- Replies: 4
- Views: 2060
Cannot execute testSegment - it is nil ?!
Hello guys, I just started coding with LUA / LÖVE today. However, I am running in to a problem which I just cannot solve. I am trying to use the Shape:testSegment(x1, y1, x2, y2) function, but it just won't execute. It always triggers an error: "attempt to call method 'testSegment' (a nil value...