Do you have a unit test framework set up, or one particularly in mind?


On 20 March 2013 08:48, Stefan Hedman <notifications@github.com> wrote:

> In src/world/World.js:
>
> >          var temp = j;
> >          j = i;
> >          i = temp;
> >      }
> > -    return this.collision_matrix[i+j*N];
> > +	// Reuse i for the index
> > +	i = (i*(i + 1)>>1) + j-1;
>
> Hm. I'm not really sure. We really need unit tests here.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/schteppe/cannon.js/pull/62/files#r3446914>
> .
>