Z Depth
Closed this issue · 0 comments
amytimed commented
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 zDepth
s 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.