Enum mgf::Component [] [src]

pub enum Component {
    Sphere(Sphere),
    Capsule(Capsule),
}

A component is a generic volume that can either be a Sphere or Capsule at runtime. Anything that can collide with a Sphere and a Capsule can collide with a component.

Variants

Methods

impl Component
[src]

[src]

Rotates the component around the origin.

Trait Implementations

impl Copy for Component
[src]

impl Clone for Component
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Component
[src]

[src]

Formats the value using the given formatter.

impl From<Sphere> for Component
[src]

[src]

Performs the conversion.

impl From<Capsule> for Component
[src]

[src]

Performs the conversion.

impl Add<Vector3<f32>> for Component
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub<Vector3<f32>> for Component
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl AddAssign<Vector3<f32>> for Component
[src]

[src]

Performs the += operation.

impl SubAssign<Vector3<f32>> for Component
[src]

[src]

Performs the -= operation.

impl Shape for Component
[src]

[src]

Returns the center of mass of the geometry, assuming a regular density.

[src]

Sets the center of the shape to p.

impl BoundedBy<AABB> for Component
[src]

[src]

impl BoundedBy<Sphere> for Component
[src]

[src]

impl Inertia for Component
[src]

[src]