pub struct Collision<'a> {
pub name: Option<&'a str>,
pub xyz: [f64; 3],
pub rpy: [f64; 3],
pub geometry: Geometry,
}Expand description
One shape a link collides with.
The shape itself is the one thing a collision cannot default, so
Collision::new takes it and leaves the rest to ...
Fields§
§name: Option<&'a str>The collision’s own name, when the structure gives it one.
xyz: [f64; 3]The shape’s offset from the link’s origin, in metres.
rpy: [f64; 3]The shape’s roll, pitch and yaw relative to the link, in radians.
geometry: GeometryThe shape itself.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Collision<'a>
impl<'a> RefUnwindSafe for Collision<'a>
impl<'a> Send for Collision<'a>
impl<'a> Sync for Collision<'a>
impl<'a> Unpin for Collision<'a>
impl<'a> UnsafeUnpin for Collision<'a>
impl<'a> UnwindSafe for Collision<'a>
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