Documentation
    Preparing search index...

    Function validateMass

    • §23's mass rule: "mass must be positive on dynamic bodies (validated, §85); non-simulated mass is expressed through the static and kinematic body types, never mass = 0."

      Exported because the RigidBody component's mass setter (WP-5.2) enforces the same rule on assignment, and there must be exactly one statement of it. An omitted mass is legal at any body type — §23 derives it from collider density then (§24, §25).

      Parameters

      • bodyType: BodyType
      • Optionalmass: number

      Returns void