This project has moved and is read-only. For the latest updates, please go here.

Dynamic Tile Map

Topics: Developer Forum, User Forum
May 18, 2012 at 6:25 AM
Edited May 18, 2012 at 6:45 AM

Hi there,

I was wondering if Farseer had any collision primitives akin to a tile map. I know it would be possible for me to simplify a set of tiles into polygonal shapes, however, my tile map will be constantly changing, which I'd imagine would be pretty rough computing all the polygonal shapes over and over every frame. Also, to clarify, the tile map is not expected to be moving itself, but the tiles are potentially moving or being destroyed/added.

If possible, I'd like to do this as a giant 2d array of bits (flags for whether a particular tile collides or not) and have it built into Farseer. If this isn't supported, I may try and implement it myself and any tips would be greatly appreciated!