Carroted/Bimulo

Z Depth

Closed this issue · 0 comments

SimuloObject and SimuloObjectData and joints should all have a zDepth property. SimuloPhysicsServer.getObjectsAtPoint should sort by zDepth, so that the objects[0] is the object at the top. Rendering should also make sure higher zDepths are at the top.

With this, when you click an object it'll click the one you were looking at instead of which one Box2D had first.