pub struct BoxShape { /* private fields */ }Expand description
BOXS — an oriented box. The client turns it straight into a polytope via CPhysicsBoxShapeDef::SetPolytopeData(frame, halfExtents).
Implementations§
Source§impl BoxShape
impl BoxShape
Sourcepub fn frame(&self) -> Ref<'_, PhysicsFrame>
pub fn frame(&self) -> Ref<'_, PhysicsFrame>
Borrows the field in place — no copy, no allocation.
pub fn frame_mut(&mut self) -> RefMut<'_, PhysicsFrame>
pub fn half_extents(&self) -> Vector3f
pub fn set_half_extents(&mut self, value: Vector3f)
Trait Implementations§
impl Send for BoxShape
Auto Trait Implementations§
impl !Sync for BoxShape
impl Freeze for BoxShape
impl RefUnwindSafe for BoxShape
impl Unpin for BoxShape
impl UnsafeUnpin for BoxShape
impl UnwindSafe for BoxShape
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