AddCollisionFrom

Introduction The AddCollisionFrom method can be used to add AxisAlignedRectangle instances to the TileShapeCollection from a tile map (MapDrawableBatch). Code Examples AddCollisionFrom provides lots of flexibility for adding collision. The simplest form is to add collision from a tile by the tile name. The following code adds collision for all tiles named “CollisionTile”: SolidCollisions.AddCollisionFrom(CurrentTileMap,”CollisionTile”); Using … Continue reading AddCollisionFrom