DISQUS

DevBlog: Project Moldering: Custom Polygons as Boundaries

  • Drealmer · 6 months ago
    Polygons have to be drawn clockwise because this way the inside is always on the right of a segment, that leads to some simplifications and optimizations in the collision detection code. It's a bit like the idea of back face culling in 3D rendering.
  • MolderingDevTeam · 5 months ago
    Ah, interesting. Thanks for pointing that out! It's good information to know. I knew there had to be a reason. Now, I just need to remember to draw them clockwise so I don't make some maps that don't work and wonder why.

    -James