pub struct Ground {
pub distance: f32,
pub normal: Vector<f32>,
}Expand description
Walkable ground supporting a capsule.
Fields§
§distance: f32Signed distance along up from the capsule’s feet to the ground:
positive means the feet are below it (move the capsule along up by
this much to rest on it), negative means they hover above it.
normal: Vector<f32>The face normal of the ground.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ground
impl RefUnwindSafe for Ground
impl Send for Ground
impl Sync for Ground
impl Unpin for Ground
impl UnsafeUnpin for Ground
impl UnwindSafe for Ground
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