Enum ark_api::world::JointLimitType
source · pub enum JointLimitType {
Off,
Hard,
Spring,
}Expand description
The limit type of a Joint, changes how it will behave if it reaches the set limits
Variants§
Off
No limits.
Hard
Hard limits. No bounce.
Spring
Spring limits.
Takes stiffness and damping parameters, which are set
through Joint::limits.
Trait Implementations§
source§impl CheckedBitPattern for JointLimitType
impl CheckedBitPattern for JointLimitType
§type Bits = u64
type Bits = u64
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.source§fn is_valid_bit_pattern(
bits: &<JointLimitType as CheckedBitPattern>::Bits
) -> bool
fn is_valid_bit_pattern( bits: &<JointLimitType as CheckedBitPattern>::Bits ) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.source§impl Clone for JointLimitType
impl Clone for JointLimitType
source§fn clone(&self) -> JointLimitType
fn clone(&self) -> JointLimitType
Returns a copy 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 JointLimitType
impl Debug for JointLimitType
source§impl Hash for JointLimitType
impl Hash for JointLimitType
source§impl PartialEq<JointLimitType> for JointLimitType
impl PartialEq<JointLimitType> for JointLimitType
source§fn eq(&self, other: &JointLimitType) -> bool
fn eq(&self, other: &JointLimitType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u64> for JointLimitType
impl TryFrom<u64> for JointLimitType
§type Error = TryFromPrimitiveError<JointLimitType>
type Error = TryFromPrimitiveError<JointLimitType>
The type returned in the event of a conversion error.
source§fn try_from(
number: u64
) -> Result<JointLimitType, TryFromPrimitiveError<JointLimitType>>
fn try_from( number: u64 ) -> Result<JointLimitType, TryFromPrimitiveError<JointLimitType>>
Performs the conversion.
source§impl TryFromPrimitive for JointLimitType
impl TryFromPrimitive for JointLimitType
type Primitive = u64
const NAME: &'static str = "JointLimitType"
fn try_from_primitive( number: <JointLimitType as TryFromPrimitive>::Primitive ) -> Result<JointLimitType, TryFromPrimitiveError<JointLimitType>>
source§impl ValueConverterTrait<JointLimitType> for ValueConverter
impl ValueConverterTrait<JointLimitType> for ValueConverter
source§fn into_value(v: JointLimitType) -> Value
fn into_value(v: JointLimitType) -> Value
Wraps the passed-in value in a
Value enum.source§fn from_value(v: &Value) -> JointLimitType
fn from_value(v: &Value) -> JointLimitType
Extracts the value from a
Value enum.