pub struct CompoundPart {
pub centre: DVec3,
pub rotation: DQuat,
pub half_extents: DVec3,
}Expand description
One box of a CompoundShape, fixed in the body’s frame.
Fields§
§centre: DVec3Its centre, in the shape’s frame.
rotation: DQuatIts orientation in the shape’s frame: identity for a box whose faces
are the body’s own axes, as every part CompoundPart::from_aabb
makes is.
half_extents: DVec3Its half-extents along its own axes, in metres.
Implementations§
Source§impl CompoundPart
impl CompoundPart
Trait Implementations§
Source§impl Clone for CompoundPart
impl Clone for CompoundPart
impl Copy for CompoundPart
Source§impl Debug for CompoundPart
impl Debug for CompoundPart
Source§impl PartialEq for CompoundPart
impl PartialEq for CompoundPart
impl StructuralPartialEq for CompoundPart
Auto Trait Implementations§
impl Forget for CompoundPart
impl Freeze for CompoundPart
impl Move for CompoundPart
impl RefUnwindSafe for CompoundPart
impl Send for CompoundPart
impl Sync for CompoundPart
impl Unpin for CompoundPart
impl UnsafeUnpin for CompoundPart
impl UnwindSafe for CompoundPart
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