#[repr(u32)]pub enum Physics {
Show 29 variants
Velocity = 0,
AngularVelocity = 1,
PhysxEnable = 3,
PhysxDynamicEnable = 4,
PhysxDensity = 5,
PhysxShape = 6,
PhysxDynamicFriction = 7,
PhysxStaticFriction = 8,
PhysxRestitution = 9,
PhysxCreateSleeping = 10,
PhysxKinematic = 11,
PhysxGravityEnabled = 12,
PhysxCollisionEventsMask = 13,
PhysxDynamicLockFlags = 14,
PhysxCompoundShape = 15,
Mass = 16,
CenterOfMass = 17,
MassRotation = 18,
InertiaTensor = 19,
LinearDamping = 20,
AngularDamping = 21,
TriggerVolume = 22,
RigidBodyMode = 23,
SolverPositionIterations = 24,
SolverVelocityIterations = 25,
PhysxSleeping = 26,
PhysxSleepThreshold = 27,
FrictionCombineMode = 28,
RestitutionCombineMode = 29,
}Variants§
Velocity = 0
‘Vec3’
AngularVelocity = 1
‘Vec3’
PhysxEnable = 3
‘bool’
PhysxDynamicEnable = 4
‘bool’
PhysxDensity = 5
‘f32’
PhysxShape = 6
‘u64’
PhysxDynamicFriction = 7
‘float’
PhysxStaticFriction = 8
‘float’
PhysxRestitution = 9
‘float’
PhysxCreateSleeping = 10
‘bool’
PhysxKinematic = 11
‘bool’
PhysxGravityEnabled = 12
‘bool’
PhysxCollisionEventsMask = 13
‘u64’
PhysxDynamicLockFlags = 14
PhysxCompoundShape = 15
‘DataHandle(CompoundPhysicsShape)’
Mass = 16
‘f32’
CenterOfMass = 17
‘Vec3’
MassRotation = 18
‘Vec4’
InertiaTensor = 19
‘Vec3’
LinearDamping = 20
‘f32’
AngularDamping = 21
‘f32’
TriggerVolume = 22
‘bool’
RigidBodyMode = 23
‘RigidBodyMode’
SolverPositionIterations = 24
‘u64’
SolverVelocityIterations = 25
‘u64’
PhysxSleeping = 26
bool
PhysxSleepThreshold = 27
f32
FrictionCombineMode = 28
‘CombineMode’
RestitutionCombineMode = 29
‘CombineMode’
Trait Implementations§
Source§impl CheckedBitPattern for Physics
impl CheckedBitPattern for Physics
Source§type Bits = u32
type Bits = u32
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 TryFromPrimitive for Physics
impl TryFromPrimitive for Physics
impl Copy for Physics
impl Eq for Physics
impl NoUninit for Physics
impl StructuralPartialEq for Physics
Auto Trait Implementations§
impl Freeze for Physics
impl RefUnwindSafe for Physics
impl Send for Physics
impl Sync for Physics
impl Unpin for Physics
impl UnwindSafe for Physics
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