pub struct Hitbox {
pub value: PlacedShape,
pub vel: HbVel,
}
Expand description
Represents a moving shape for continuous collision testing.
Fields§
§value: PlacedShape
The placed shape at the given point in time.
The width and height of the shape must be greater than padding
at all times.
vel: HbVel
Velocity information describing how the hitbox shape is changing over time.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Hitbox
Auto Trait Implementations§
impl Freeze for Hitbox
impl RefUnwindSafe for Hitbox
impl Send for Hitbox
impl Sync for Hitbox
impl Unpin for Hitbox
impl UnwindSafe for Hitbox
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