VelcroPhysics
VelcroPhysics copied to clipboard
Precalculate and cache normal of EdgeShape
Edge shapes are static, and as such we can precompute their normal. Raycasts against edge shapes needs the normal, and currently it is calculated on each call to RayCast(). Since we would like branchless code, I think it is better to precompute it and cache it.