#[repr(C)]pub struct b3CollisionPlane {
pub plane: b3Plane,
pub pushLimit: f32,
pub push: f32,
pub clipVelocity: bool,
}Expand description
These are collision planes that can be fed to b3SolvePlanes. Normally this is assembled by the user from plane results in b3PlaneResult.
Fields§
§plane: b3PlaneThe collision plane between the mover and some shape.
pushLimit: f32Setting this to FLT_MAX makes the plane as rigid as possible. Lower values can make the plane collision soft. Usually in meters.
push: f32The push on the mover determined by b3SolvePlanes. Usually in meters.
clipVelocity: boolIndicates if b3ClipVector should clip against this plane. Should be false for soft collision.
Trait Implementations§
Source§impl Clone for b3CollisionPlane
impl Clone for b3CollisionPlane
Source§fn clone(&self) -> b3CollisionPlane
fn clone(&self) -> b3CollisionPlane
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 b3CollisionPlane
Auto Trait Implementations§
impl Freeze for b3CollisionPlane
impl RefUnwindSafe for b3CollisionPlane
impl Send for b3CollisionPlane
impl Sync for b3CollisionPlane
impl Unpin for b3CollisionPlane
impl UnsafeUnpin for b3CollisionPlane
impl UnwindSafe for b3CollisionPlane
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