klavinslab / enviro

Multi-agent, multi-user environment
Other
3 stars 11 forks source link

Shape Boundaries in Physics Engine #2

Open basikthings opened 4 years ago

basikthings commented 4 years ago

When shape boundaries are non-concave, the actual physics boundary is polygon bounding the entire entity instead. For example,

If shape is "shape": [ { "x": 0, "y": 0 }, { "x": 0, "y": 10 }, { "x": 1, "y": 10 }, { "x": 1, "y": 1}, { "x": 10, "y": 1 }, { "x": 10, "y": 0 } ] It looks like an L shape, but the represented physics is actually that of the bounding triangle shape.

klavins commented 4 years ago

Hmm. Thanks. Not sure why that would be.