crashcat docs
    Preparing search index...

    Function getCenterOfMassAndVolume

    • Calculate center of mass and volume. Calculates the center of mass and volume of the convex hull by decomposing it into tetrahedra. Each face is triangulated into a fan from its centroid.

      Parameters

      Returns { centerOfMass: Vec3; volume: number }