Visual

Type Alias Visual 

Source
pub type Visual<'a> = Entity<'a>;

Aliased Type§

pub enum Visual<'a> {
    Sphere {
        radius: f64,
    },
    Box {
        half_extents: [f64; 3],
    },
    Capsule {
        radius: f64,
        height: f64,
    },
    Cylinder {
        radius: f64,
        height: f64,
    },
    Plane {
        normal: [f64; 3],
        constant: f64,
    },
    MeshFile {
        file: &'a str,
        scale: [f64; 3],
    },
    ConvexMesh {
        vertices: &'a [[f64; 3]],
        scale: [f64; 3],
    },
    Mesh {
        vertices: &'a [[f64; 3]],
        indices: &'a [i32],
        scale: [f64; 3],
    },
}

Variants§

§

Sphere

Fields

§radius: f64
§

Box

Fields

§half_extents: [f64; 3]
§

Capsule

Fields

§radius: f64
§height: f64
§

Cylinder

Fields

§radius: f64
§height: f64
§

Plane

Fields

§normal: [f64; 3]
§constant: f64
§

MeshFile

Fields

§file: &'a str
§scale: [f64; 3]
§

ConvexMesh

Fields

§vertices: &'a [[f64; 3]]
§scale: [f64; 3]
§

Mesh

Fields

§vertices: &'a [[f64; 3]]
§indices: &'a [i32]
§scale: [f64; 3]