pub struct M2PhysicsShape {
pub shape_type: M2PhysicsShapeType,
pub bone_index: u16,
pub flags: M2PhysicsFlags,
pub position: C3Vector,
pub orientation: C3Vector,
pub dimensions: [f32; 5],
}Expand description
Represents a physics collision element
Fields§
§shape_type: M2PhysicsShapeTypeShape type
bone_index: u16Index of the bone this shape is attached to
flags: M2PhysicsFlagsPhysics flags
position: C3VectorPosition relative to the bone
orientation: C3VectorOrientation (radians)
dimensions: [f32; 5]Size parameters (interpretation depends on shape type)
Implementations§
Trait Implementations§
Source§impl Clone for M2PhysicsShape
impl Clone for M2PhysicsShape
Source§fn clone(&self) -> M2PhysicsShape
fn clone(&self) -> M2PhysicsShape
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 moreAuto Trait Implementations§
impl Freeze for M2PhysicsShape
impl RefUnwindSafe for M2PhysicsShape
impl Send for M2PhysicsShape
impl Sync for M2PhysicsShape
impl Unpin for M2PhysicsShape
impl UnsafeUnpin for M2PhysicsShape
impl UnwindSafe for M2PhysicsShape
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more