pub struct PlaneResult {
pub plane: Plane,
pub point: Vec2,
pub hit: bool,
}Expand description
These are the collision planes returned from b2World_CollideMover. The plane and point are relative to the query origin, matching the mover capsule. (b2PlaneResult)
Fields§
§plane: PlaneThe collision plane between the mover and a convex shape
point: Vec2The collision point on the shape.
hit: boolDid the collision register a hit? If not this plane should be ignored.
Trait Implementations§
Source§impl Clone for PlaneResult
impl Clone for PlaneResult
Source§fn clone(&self) -> PlaneResult
fn clone(&self) -> PlaneResult
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 PlaneResult
Source§impl Debug for PlaneResult
impl Debug for PlaneResult
Source§impl Default for PlaneResult
impl Default for PlaneResult
Source§impl PartialEq for PlaneResult
impl PartialEq for PlaneResult
impl StructuralPartialEq for PlaneResult
Auto Trait Implementations§
impl Freeze for PlaneResult
impl RefUnwindSafe for PlaneResult
impl Send for PlaneResult
impl Sync for PlaneResult
impl Unpin for PlaneResult
impl UnsafeUnpin for PlaneResult
impl UnwindSafe for PlaneResult
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