#[non_exhaustive]pub enum RadialImpulseError {
InvalidCenter,
InvalidRadius,
InvalidMagnitude,
InvalidZeroAxis,
OutputCapacity {
required: usize,
},
WorkLimit {
required: usize,
},
CandidateCapacity {
required: usize,
},
BodyLimit {
required: usize,
},
IncompleteGeometry {
collider: ColliderHandle,
},
PendingMass {
body: RigidBodyHandle,
},
NonFiniteEffect {
body: RigidBodyHandle,
},
}Expand description
Atomic rejection: world state and accepted output remain unchanged. Candidate scratch is unspecified after any error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidCenter
InvalidRadius
InvalidMagnitude
InvalidZeroAxis
OutputCapacity
Output length is smaller than the requested max-body capacity.
WorkLimit
World live-collider count exceeds the caller’s work limit.
CandidateCapacity
Complete query candidates did not fit. No first-N effects are applied.
BodyLimit
IncompleteGeometry
A query distance/witness or COM cannot be represented reliably as finite.
Fields
§
collider: ColliderHandlePendingMass
An admitted body has pending mass edits; refresh explicitly before retry. This helper never refreshes mass as part of a supposedly atomic rejection.
Fields
§
body: RigidBodyHandleNonFiniteEffect
Impulse, its f32 mass product or resulting velocity would be nonfinite.
Fields
§
body: RigidBodyHandleTrait Implementations§
Source§impl Clone for RadialImpulseError
impl Clone for RadialImpulseError
Source§fn clone(&self) -> RadialImpulseError
fn clone(&self) -> RadialImpulseError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RadialImpulseError
impl Debug for RadialImpulseError
Source§impl Display for RadialImpulseError
impl Display for RadialImpulseError
Source§impl Error for RadialImpulseError
impl Error for RadialImpulseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for RadialImpulseError
impl PartialEq for RadialImpulseError
impl Copy for RadialImpulseError
impl Eq for RadialImpulseError
impl StructuralPartialEq for RadialImpulseError
Auto Trait Implementations§
impl Freeze for RadialImpulseError
impl RefUnwindSafe for RadialImpulseError
impl Send for RadialImpulseError
impl Sync for RadialImpulseError
impl Unpin for RadialImpulseError
impl UnwindSafe for RadialImpulseError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more