pub struct WallReport {
pub outcome: WallOutcome,
pub velocity: Option<Vec2>,
pub state: ProjectileState,
}Expand description
Wall outcome and resulting budgets. velocity is exactly the legacy wall
return value: None only for inactive or exhausted bounce. Separating and
tangent outcomes are not accepted impacts and must not trigger hit feedback.
A bounced report is nominal budget admission; the host owns applying the
response and accepting any game-owned impact/damage before feedback.
See ProjectileBudget::wall_report for a runnable example.
Fields§
§outcome: WallOutcome§velocity: Option<Vec2>§state: ProjectileStateTrait Implementations§
Source§impl Clone for WallReport
impl Clone for WallReport
Source§fn clone(&self) -> WallReport
fn clone(&self) -> WallReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WallReport
impl Debug for WallReport
Source§impl PartialEq for WallReport
impl PartialEq for WallReport
impl Copy for WallReport
impl StructuralPartialEq for WallReport
Auto Trait Implementations§
impl Freeze for WallReport
impl RefUnwindSafe for WallReport
impl Send for WallReport
impl Sync for WallReport
impl Unpin for WallReport
impl UnwindSafe for WallReport
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