pub struct CollisionPlane {
pub plane: Plane,
pub push_limit: f32,
pub push: f32,
pub clip_velocity: bool,
}Expand description
Collision planes that can be fed to crate::mover::solve_planes.
Normally assembled by the user from PlaneResult values. (b3CollisionPlane)
Fields§
§plane: PlaneThe collision plane between the mover and some shape.
push_limit: f32Setting this to f32::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 solve_planes. Usually in meters.
clip_velocity: boolIndicates if clip_vector should clip against this plane. Should be
false for soft collision.
Trait Implementations§
Source§impl Clone for CollisionPlane
impl Clone for CollisionPlane
Source§fn clone(&self) -> CollisionPlane
fn clone(&self) -> CollisionPlane
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 CollisionPlane
Source§impl Debug for CollisionPlane
impl Debug for CollisionPlane
Source§impl Default for CollisionPlane
impl Default for CollisionPlane
Source§impl PartialEq for CollisionPlane
impl PartialEq for CollisionPlane
impl StructuralPartialEq for CollisionPlane
Auto Trait Implementations§
impl Freeze for CollisionPlane
impl RefUnwindSafe for CollisionPlane
impl Send for CollisionPlane
impl Sync for CollisionPlane
impl Unpin for CollisionPlane
impl UnsafeUnpin for CollisionPlane
impl UnwindSafe for CollisionPlane
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