Tag Info

Hot answers tagged


What is the problem? Generally speaking, you want to do a topological sorting, where the nodes are your bricks and the edges mean "is this node behind that other node" relationship. So all you need to do in order to sort anything anywhere is to decide on "is behind" relationship. It seems that your code treats bricks as uniform objects in a grid, ...


I personally never calculate an angle like that. I like to work with vectors, it might be slightly less efficient but this way you can do it step by step, it gets more readable and easier to understand. So what is a vector? A vector is essentially a direction and a magnitude together. Often in games it is used as a position data structure too but ...

Only top voted, non community-wiki answers of a minimum length are eligible