#[repr(u64)]pub enum RigidBodyMode {
Off = 0,
Static = 1,
Dynamic = 2,
Kinematic = 3,
}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 = 0
Physics not enabled on this entity.
Static = 1
Entity is using static physics.
Dynamic = 2
Entity is using dynamic physics.
Kinematic = 3
Entity is using kinematic physics.
Trait Implementations§
Source§impl CheckedBitPattern for RigidBodyMode
impl CheckedBitPattern for RigidBodyMode
Source§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: &Self::Bits) -> bool
fn is_valid_bit_pattern(bits: &Self::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 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 RigidBodyMode
impl Debug for RigidBodyMode
Source§impl From<RigidBodyMode> for u64
impl From<RigidBodyMode> for u64
Source§fn from(enum_value: RigidBodyMode) -> Self
fn from(enum_value: RigidBodyMode) -> Self
Converts to this type from the input type.
Source§impl Hash for RigidBodyMode
impl Hash for RigidBodyMode
Source§impl PartialEq for RigidBodyMode
impl PartialEq for RigidBodyMode
Source§impl TryFrom<u64> for RigidBodyMode
impl TryFrom<u64> for RigidBodyMode
Source§type Error = TryFromPrimitiveError<RigidBodyMode>
type Error = TryFromPrimitiveError<RigidBodyMode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for RigidBodyMode
impl TryFromPrimitive for RigidBodyMode
impl Copy for RigidBodyMode
impl Eq for RigidBodyMode
impl NoUninit for RigidBodyMode
impl StructuralPartialEq for RigidBodyMode
Auto Trait Implementations§
impl Freeze for RigidBodyMode
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