#4246·OpenUSD

ComputeMassProperties includes colliders rejected by the mass callback

Author: dvasquezlopezCreated Sep 25, 2026Updated Sep 28, 2026

Specula found this at OpenUSD commit fc590b38e24770408e31b56442d31b8029729ee7.

ComputeMassProperties() includes a collider after MassInformationFn rejects it with negative volume. The rejected path returns default mass properties with mass 1 and leaves its transform unset. A local USD 26.8 witness shows that adding one rejected collider to a valid mass-2 collider changes the body mass from 2 to 3; center of mass and inertia can also use the unset transform.

Current sequence

T0: A body has one supported collider and one the callback cannot represent.
T1: The supported collider yields mass 2; the callback rejects the other with volume -1.
T2: The rejected path returns default mass 1 and leaves its transform unset.
T3: Both entries are summed, so the body mass becomes 3 instead of 2.

Proposed sequence

T0: The callback produces the same valid and rejected results.
T1: The parser returns validity separately from mass properties.
T2: It appends neither mass nor transform for the rejected collider.
T3: The sum contains only initialized valid entries and remains mass 2.

The witness exercises the public mass API with a synthetic callback and does not step a physics engine. Add mixed-validity and all-rejected coverage. @AlesBorovicka is the most likely owner from local file history. Please feel free to assign this to someone else if another owner is closer.

Source: PixarAnimationStudios/OpenUSD