Struct mgf::Moving [] [src]

pub struct Moving<T: Copy + Clone + Shape>(pub T, pub Vector3<f32>);

A geometry swept accross a given path of motion.

Methods

impl<T: Copy + Clone + Shape> Moving<T>
[src]

[src]

Create a moving object with velocity of vel

[src]

Return the velocity of the object.

Trait Implementations

impl<B: Bound, T: Copy + Clone + Shape + BoundedBy<B>> BoundedBy<B> for Moving<T>
[src]

[src]

The bounds for a swept object is the bounds extended in the direction and magnitude of the velocity.

impl<RHS> Contacts<RHS> for Moving<Component> where
    RHS: Contacts<Moving<Sphere>> + Contacts<Moving<Capsule>>, 
[src]

[src]

Calls the closure for each contact found. Returns true if any contact was found. Read more

[src]

Returns the last contact found, if one exists.

impl Intersects<Ray> for Moving<Sphere>
[src]

[src]

Returns an Intersection if one exists.

impl Intersects<Segment> for Moving<Sphere>
[src]

[src]

Returns an Intersection if one exists.

impl Contacts<Plane> for Moving<Sphere>
[src]

[src]

Calls the closure for each contact found. Returns true if any contact was found. Read more

[src]

Returns the last contact found, if one exists.

impl Contacts<Plane> for Moving<Capsule>
[src]

[src]

Calls the closure for each contact found. Returns true if any contact was found. Read more

[src]

Returns the last contact found, if one exists.

impl Contacts<Triangle> for Moving<Sphere>
[src]

[src]

Calls the closure for each contact found. Returns true if any contact was found. Read more

[src]

Returns the last contact found, if one exists.

impl Contacts<Rectangle> for Moving<Sphere>
[src]

[src]

Calls the closure for each contact found. Returns true if any contact was found. Read more

[src]

Returns the last contact found, if one exists.

impl Contacts<Triangle> for Moving<Capsule>
[src]

[src]

Calls the closure for each contact found. Returns true if any contact was found. Read more

[src]

Returns the last contact found, if one exists.

impl Contacts<Rectangle> for Moving<Capsule>
[src]

[src]

Calls the closure for each contact found. Returns true if any contact was found. Read more

[src]

Returns the last contact found, if one exists.

impl<Recv, Arg> Contacts<Arg> for Moving<Recv> where
    Arg: Shape + Copy,
    Recv: Contacts<Moving<Arg>> + Shape + Copy
[src]

[src]

Calls the closure for each contact found. Returns true if any contact was found. Read more

[src]

Returns the last contact found, if one exists.

impl<Recv, Arg> Contacts<Moving<Arg>> for Moving<Recv> where
    Recv: Contacts<Moving<Arg>> + Shape + Copy,
    Arg: Shape + Copy
[src]

Any two moving object collision can be reduced to a one moving one static. object collision. This is done by finding the relative velocity between the two objects.

[src]

Calls the closure for each contact found. Returns true if any contact was found. Read more

[src]

Returns the last contact found, if one exists.

impl<Recv, Arg> LocalContacts<Arg> for Moving<Recv> where
    Recv: Shape + Copy,
    Arg: Contacts<Moving<Recv>> + Shape + Copy
[src]

[src]

Calls the closure for each contact found. Returns true if any contact was found. Read more

[src]

Returns the last contact found, if one exists.

impl<Recv, Arg> LocalContacts<Moving<Arg>> for Moving<Recv> where
    Recv: Contacts<Moving<Arg>> + Shape + Copy,
    Arg: Shape + Copy
[src]

[src]

Calls the closure for each contact found. Returns true if any contact was found. Read more

[src]

Returns the last contact found, if one exists.

impl<T: Copy + Copy + Clone + Shape> Copy for Moving<T>
[src]

impl<T: Clone + Copy + Clone + Shape> Clone for Moving<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug + Copy + Clone + Shape> Debug for Moving<T>
[src]

[src]

Formats the value using the given formatter.

impl<T: Copy + Clone + Shape> AsRef<T> for Moving<T>
[src]

[src]

Performs the conversion.

impl<T: Copy + Clone + Shape> Delta for Moving<T>
[src]

[src]