#[repr(i32)]pub enum PhysicsBodyType {
Kinematic = 0,
Dynamic = 1,
}Expand description
How the client drives a body — the value stored in BODY is inverted relative to Domino’s own dmBodyType.
Variants§
Kinematic = 0
Animation-driven collider. Becomes dmBodyType 1; the client keeps it glued to its bone and the simulation only reads it.
Dynamic = 1
Simulated. Becomes dmBodyType 0 and gets its bone transform written back every frame. These are the cloth/tassel segments.
Trait Implementations§
Source§impl Clone for PhysicsBodyType
impl Clone for PhysicsBodyType
Source§fn clone(&self) -> PhysicsBodyType
fn clone(&self) -> PhysicsBodyType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PhysicsBodyType
Source§impl Debug for PhysicsBodyType
impl Debug for PhysicsBodyType
impl Eq for PhysicsBodyType
Source§impl Hash for PhysicsBodyType
impl Hash for PhysicsBodyType
Source§impl PartialEq for PhysicsBodyType
impl PartialEq for PhysicsBodyType
impl StructuralPartialEq for PhysicsBodyType
Auto Trait Implementations§
impl Freeze for PhysicsBodyType
impl RefUnwindSafe for PhysicsBodyType
impl Send for PhysicsBodyType
impl Sync for PhysicsBodyType
impl Unpin for PhysicsBodyType
impl UnsafeUnpin for PhysicsBodyType
impl UnwindSafe for PhysicsBodyType
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