w0rm/elm-physics

Optimization: cache connectedFaces for each ConvexPolyhedron face.

paulmartel opened this issue · 2 comments

Calculate up front and cache an (Array (List Int)) of the connectedFaces for each face to prevent n-squared cycling in collision detection. BTW, I slightly prefer the term "adjacent face" to "connected face".

w0rm commented

This could be done together with #16 to not require an additional array.

w0rm commented

Closed via #22