Skip to content

Instantly share code, notes, and snippets.

Avatar

James Ford jamesford42

  • Sickhead Games LLC
  • Dallas, TX
View GitHub Profile
@jamesford42
jamesford42 / Space.cs
Last active Jan 7, 2018
Uniform-dimension cells in a sparse grid, for acceleration of 2D bounding rectangle overlap tests.
View Space.cs
#if WINDOWS && !RETAIL
#define PROFILE_COLLISION
#endif
#define NO_CELL_MASK
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Microsoft.Xna.Framework;