Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ public void CreateObjects()
if (drawOrder == DrawOrder.TopDown)
{
// xObjects need to be ordered by y-value
xObjects = xObjects.OrderBy(x => x.GetAttributeAs<float>("y", 0.0f));
xObjects = xObjects.OrderBy((x) => {
float m_X = x.GetAttributeAs<float>("x", 0.0f);
float m_Y = x.GetAttributeAs<float>("y", 0.0f);
var localPosition = ColliderFactory.TransformPoint(new Vector2(m_X, m_Y));
return localPosition.y;
});
}

foreach (var xObj in xObjects)
Expand Down