Struct mgf::Moving[][src]

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

A geometry swept accross a given path of motion.

Methods

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

Create a moving object with velocity of vel

impl<T: Shape> Moving<T>
[src]

Return the velocity of the object.

Trait Implementations

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

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

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

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

Returns the last contact found, if one exists.

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

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

Returns the last contact found, if one exists.

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

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

Returns the last contact found, if one exists.

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

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

Returns the last contact found, if one exists.

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

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

Returns the last contact found, if one exists.

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

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

Returns the last contact found, if one exists.

impl LocalContacts<Moving<Component>> for Moving<Component>
[src]

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

Returns the last contact found, if one exists.

impl<P: Particle> Intersects<Moving<Sphere>> for P
[src]

Returns an Intersection if one exists.

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

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

Returns the last contact found, if one exists.

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

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

Returns the last contact found, if one exists.

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

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

Returns the last contact found, if one exists.

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

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

Returns the last contact found, if one exists.

impl<Poly: Polygon> Contacts<Moving<Sphere>> for Poly
[src]

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

Returns the last contact found, if one exists.

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

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

Returns the last contact found, if one exists.

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

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

Returns the last contact found, if one exists.

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

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

Returns the last contact found, if one exists.

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

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

Returns the last contact found, if one exists.

impl<Poly: Polygon> Contacts<Moving<Capsule>> for Poly
[src]

Colliding a moving capsule with a single-faced polygon can potentially produce multiple contacts depending on the angle between the capsule's length and the normal of the polygon's face.

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

Returns the last contact found, if one exists.

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

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

Returns the last contact found, if one exists.

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

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

Returns the last contact found, if one exists.

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

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

Returns the last contact found, if one exists.

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

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

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
[src]

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

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.

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

Returns the last contact found, if one exists.

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

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

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
[src]

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

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]

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

Returns the last contact found, if one exists.

impl From<Moving<Sphere>> for Capsule
[src]

Performs the conversion.

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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

Performs the conversion.

impl<T: Shape> AsMut<T> for Moving<T>
[src]

Performs the conversion.

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

Auto Trait Implementations

impl<T> Send for Moving<T> where
    T: Send

impl<T> Sync for Moving<T> where
    T: Sync