Genbox / VelcroPhysics

High performance 2D collision detection system with realistic physics responses.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduce quickshapes for better performance

Genbox opened this issue · comments

Polygons are generic and always calculate their normals and centroid. However, sometimes we know a shape is symmetric on both axis, we can therefore quickly just set the normals and centroid with no calculations.

To simplify things, see if we can expose those quickshapes though the factories.