Enum ark_api::world::RigidBodyMode
source · #[repr(u64)]pub enum RigidBodyMode {
Off,
Static,
Dynamic,
Kinematic,
}Expand description
The rigid body mode of a Physics component of an entity.
Can not be set directly (still need to use enable_dynamic etc), but can be read.
Variants§
Off
Physics not enabled on this entity.
Static
Entity is using static physics.
Dynamic
Entity is using dynamic physics.
Kinematic
Entity is using kinematic physics.
Trait Implementations§
source§impl CheckedBitPattern for RigidBodyMode
impl CheckedBitPattern for RigidBodyMode
§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: &<RigidBodyMode as CheckedBitPattern>::Bits
) -> bool
fn is_valid_bit_pattern( bits: &<RigidBodyMode as CheckedBitPattern>::Bits ) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.source§impl Clone for RigidBodyMode
impl Clone for RigidBodyMode
source§fn clone(&self) -> RigidBodyMode
fn clone(&self) -> RigidBodyMode
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 RigidBodyMode
impl Debug for RigidBodyMode
source§impl Hash for RigidBodyMode
impl Hash for RigidBodyMode
source§impl PartialEq<RigidBodyMode> for RigidBodyMode
impl PartialEq<RigidBodyMode> for RigidBodyMode
source§fn eq(&self, other: &RigidBodyMode) -> bool
fn eq(&self, other: &RigidBodyMode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u64> for RigidBodyMode
impl TryFrom<u64> for RigidBodyMode
§type Error = TryFromPrimitiveError<RigidBodyMode>
type Error = TryFromPrimitiveError<RigidBodyMode>
The type returned in the event of a conversion error.
source§fn try_from(
number: u64
) -> Result<RigidBodyMode, TryFromPrimitiveError<RigidBodyMode>>
fn try_from( number: u64 ) -> Result<RigidBodyMode, TryFromPrimitiveError<RigidBodyMode>>
Performs the conversion.
source§impl TryFromPrimitive for RigidBodyMode
impl TryFromPrimitive for RigidBodyMode
type Primitive = u64
const NAME: &'static str = "RigidBodyMode"
fn try_from_primitive( number: <RigidBodyMode as TryFromPrimitive>::Primitive ) -> Result<RigidBodyMode, TryFromPrimitiveError<RigidBodyMode>>
source§impl ValueConverterTrait<RigidBodyMode> for ValueConverter
impl ValueConverterTrait<RigidBodyMode> for ValueConverter
source§fn into_value(v: RigidBodyMode) -> Value
fn into_value(v: RigidBodyMode) -> Value
Wraps the passed-in value in a
Value enum.source§fn from_value(v: &Value) -> RigidBodyMode
fn from_value(v: &Value) -> RigidBodyMode
Extracts the value from a
Value enum.impl Copy for RigidBodyMode
impl Eq for RigidBodyMode
impl NoUninit for RigidBodyMode
impl StructuralEq for RigidBodyMode
impl StructuralPartialEq for RigidBodyMode
Auto Trait Implementations§
impl RefUnwindSafe for RigidBodyMode
impl Send for RigidBodyMode
impl Sync for RigidBodyMode
impl Unpin for RigidBodyMode
impl UnwindSafe for RigidBodyMode
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