1 decade ago by EralpB
Hello, what would be best way to implement a circular entity?
Entity vs entity is easier to implement but entity vs tiled collision map can be a little bit more tiresome.
The reason I am asking this is I am new to this great engine and I would like to learn the best way in terms of keeping the code as clean as possible.
This is the trace result, so can I get world coordinates + tile size using this information? Or should I hard-code my tile size etc. to make this useful to use for collision detection.
Thanks.
Entity vs entity is easier to implement but entity vs tiled collision map can be a little bit more tiresome.
The reason I am asking this is I am new to this great engine and I would like to learn the best way in terms of keeping the code as clean as possible.
{ collision: { x: false, y: false, slope: false }, pos: { x: 0, y: 0 }, // Resulting object position tile: { x: 0, y: 0 } // Tile for the collision }
This is the trace result, so can I get world coordinates + tile size using this information? Or should I hard-code my tile size etc. to make this useful to use for collision detection.
Thanks.