Struct collider::Hitbox [] [src]

pub struct Hitbox {
    pub value: PlacedShape,
    pub vel: HbVel,
}

Represents a moving shape for continuous collision testing.

Fields

The placed shape at the given point in time.

The width and height of the shape must be greater than padding at all times.

Velocity information describing how the hitbox shape is changing over time.

Methods

impl Hitbox
[src]

[src]

Constructs a new hitbox with the given value and vel.

Trait Implementations

impl PartialEq for Hitbox
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Clone for Hitbox
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Hitbox
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Hitbox

impl Sync for Hitbox