Trait bevy::prelude::Meshable

pub trait Meshable {
    type Output;

    // Required method
    fn mesh(&self) -> Self::Output;
}
Expand description

A trait for shapes that can be turned into a Mesh.

Required Associated Types§

type Output

The output of Self::mesh. This can either be a Mesh or a builder used for creating a Mesh.

Required Methods§

fn mesh(&self) -> Self::Output

Creates a Mesh for a shape.

Implementors§