#[repr(C)]pub struct b2CollisionPlane {
pub plane: b2Plane,
pub pushLimit: f32,
pub push: f32,
pub clipVelocity: bool,
}Expand description
These are collision planes that can be fed to b2SolvePlanes. Normally this is assembled by the user from plane results in b2PlaneResult
Fields§
§plane: b2PlaneThe 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 b2SolvePlanes. Usually in meters.
clipVelocity: boolIndicates if b2ClipVector should clip against this plane. Should be false for soft collision.
Trait Implementations§
Source§impl Clone for b2CollisionPlane
impl Clone for b2CollisionPlane
Source§fn clone(&self) -> b2CollisionPlane
fn clone(&self) -> b2CollisionPlane
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for b2CollisionPlane
impl Debug for b2CollisionPlane
impl Copy for b2CollisionPlane
Auto Trait Implementations§
impl Freeze for b2CollisionPlane
impl RefUnwindSafe for b2CollisionPlane
impl Send for b2CollisionPlane
impl Sync for b2CollisionPlane
impl Unpin for b2CollisionPlane
impl UnwindSafe for b2CollisionPlane
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)