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
sourceimpl 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
. Read more
sourcefn 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
. Read more
sourceimpl Clone for RigidBodyMode
impl Clone for RigidBodyMode
sourcefn clone(&self) -> RigidBodyMode
fn clone(&self) -> RigidBodyMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RigidBodyMode
impl Debug for RigidBodyMode
sourceimpl Hash for RigidBodyMode
impl Hash for RigidBodyMode
sourceimpl PartialEq<RigidBodyMode> for RigidBodyMode
impl PartialEq<RigidBodyMode> for RigidBodyMode
sourcefn 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 ==
. Read more
sourceimpl 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.
sourcefn try_from(
number: u64
) -> Result<RigidBodyMode, TryFromPrimitiveError<RigidBodyMode>>
fn try_from(
number: u64
) -> Result<RigidBodyMode, TryFromPrimitiveError<RigidBodyMode>>
Performs the conversion.
sourceimpl 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>>
sourceimpl ValueConverterTrait<RigidBodyMode> for ValueConverter
impl ValueConverterTrait<RigidBodyMode> for ValueConverter
sourcefn into_value(v: RigidBodyMode) -> Value
fn into_value(v: RigidBodyMode) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more