Skip to content

Instantly share code, notes, and snippets.

@andykorth
andykorth / cpConvexMoment.c
Created May 17, 2012 15:14 — forked from slembcke/cpConvexMoment.c
Convex Moment
So I see two options right now:
Idea 1:
// add a convenience method to the API
cpMakeBodyAndShape(mass, NUM_VERTS, verts){
verts = AllThatConvexHullStuff(verts);
moment = cpMomentForPoly(verts, otherNumber, mass, etc);