pub struct ShapeProxy {
pub points: [Vec3; 64],
pub count: i32,
pub radius: f32,
}Expand description
A shape proxy is used by the GJK algorithm. It can represent a convex shape.
Unlike C’s b3ShapeProxy (which holds a const b3Vec3* pointer), this owns
a fixed-size point buffer so the proxy is self-contained and Copy.
(b3ShapeProxy)
Fields§
§points: [Vec3; 64]The point cloud.
count: i32The number of points. Do not exceed MAX_SHAPE_CAST_POINTS.
radius: f32The external radius of the point cloud.
Trait Implementations§
Source§impl Clone for ShapeProxy
impl Clone for ShapeProxy
Source§fn clone(&self) -> ShapeProxy
fn clone(&self) -> ShapeProxy
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 ShapeProxy
Source§impl Debug for ShapeProxy
impl Debug for ShapeProxy
Source§impl Default for ShapeProxy
impl Default for ShapeProxy
Source§impl PartialEq for ShapeProxy
impl PartialEq for ShapeProxy
impl StructuralPartialEq for ShapeProxy
Auto Trait Implementations§
impl Freeze for ShapeProxy
impl RefUnwindSafe for ShapeProxy
impl Send for ShapeProxy
impl Sync for ShapeProxy
impl Unpin for ShapeProxy
impl UnsafeUnpin for ShapeProxy
impl UnwindSafe for ShapeProxy
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