pub struct WorldCastOutput {
pub normal: Vec2,
pub point: Position,
pub fraction: f32,
pub iterations: i32,
pub hit: bool,
}Expand description
Result of a cast whose hit point is an absolute world position.
Fields§
§normal: Vec2Unit surface normal in world orientation.
point: PositionAbsolute world-space hit position.
fraction: f32Fraction of the cast translation at which the hit occurred.
iterations: i32§hit: boolImplementations§
Trait Implementations§
Source§impl Clone for WorldCastOutput
impl Clone for WorldCastOutput
Source§fn clone(&self) -> WorldCastOutput
fn clone(&self) -> WorldCastOutput
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 WorldCastOutput
Source§impl Debug for WorldCastOutput
impl Debug for WorldCastOutput
Source§impl Default for WorldCastOutput
impl Default for WorldCastOutput
Source§fn default() -> WorldCastOutput
fn default() -> WorldCastOutput
Returns the “default value” for a type. Read more
Source§impl PartialEq for WorldCastOutput
impl PartialEq for WorldCastOutput
impl StructuralPartialEq for WorldCastOutput
Auto Trait Implementations§
impl Freeze for WorldCastOutput
impl RefUnwindSafe for WorldCastOutput
impl Send for WorldCastOutput
impl Sync for WorldCastOutput
impl Unpin for WorldCastOutput
impl UnsafeUnpin for WorldCastOutput
impl UnwindSafe for WorldCastOutput
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