pub enum MassPropertyIssue {
Show 15 variants
EmptyCompound,
TooManyChildren,
InvalidCollider,
InvalidDensity,
NonFiniteShape,
DegenerateShape,
UnsupportedShape,
ZeroMass,
MassUnderflow,
MassOverflow,
InverseMassOverflow,
CenterOverflow,
InertiaOverflow,
DegenerateInertia,
InverseInertiaOverflow,
}Expand description
Why checked mass construction failed.
Variants§
EmptyCompound
A dynamic body needs at least one collider.
TooManyChildren
The compound exceeds crate::MAX_CHILDREN.
InvalidCollider
The collider’s material or local pose is invalid for this dimension.
InvalidDensity
Density must be finite and in 0..=1e6.
NonFiniteShape
A shape coordinate or dimension is not finite.
DegenerateShape
A radius or half extent is not strictly positive.
UnsupportedShape
The shape cannot be used in the requested dimension.
ZeroMass
All children have zero density.
MassUnderflow
Positive density and dimensions produced zero mass in f32 arithmetic.
MassOverflow
A primitive or accumulated mass is not finite.
InverseMassOverflow
The reciprocal of the total mass is not finite.
CenterOverflow
A primitive center or weighted center calculation is not finite.
InertiaOverflow
A primitive, transformed, or accumulated inertia is not finite.
DegenerateInertia
Active inertia is nonpositive or numerically singular.
InverseInertiaOverflow
Inverting inertia produced a nonfinite or nonpositive active diagonal.
Trait Implementations§
Source§impl Clone for MassPropertyIssue
impl Clone for MassPropertyIssue
Source§fn clone(&self) -> MassPropertyIssue
fn clone(&self) -> MassPropertyIssue
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more