Struct collider::Hitbox
[−]
[src]
pub struct Hitbox { pub value: PlacedShape, pub vel: HbVel, }
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.
Methods
impl Hitbox
[src]
fn new(value: PlacedShape, vel: HbVel) -> Hitbox
[src]
Constructs a new hitbox with the given value
and vel
.
Trait Implementations
impl PartialEq for Hitbox
[src]
fn eq(&self, __arg_0: &Hitbox) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Hitbox) -> bool
[src]
This method tests for !=
.
impl Clone for Hitbox
[src]
fn clone(&self) -> Hitbox
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more