Trait bevy::gizmos::primitives::dim3::GizmoPrimitive3d

pub trait GizmoPrimitive3d<P>
where P: Primitive3d,
{ type Output<'a> where Self: 'a; // Required method fn primitive_3d( &mut self, primitive: P, position: Vec3, rotation: Quat, color: impl Into<Color> ) -> Self::Output<'_>; }
Expand description

A trait for rendering 3D geometric primitives (P) with Gizmos.

Required Associated Types§

type Output<'a> where Self: 'a

The output of primitive_3d. This is a builder to set non-default values.

Required Methods§

fn primitive_3d( &mut self, primitive: P, position: Vec3, rotation: Quat, color: impl Into<Color> ) -> Self::Output<'_>

Renders a 3D primitive with its associated details.

Object Safety§

This trait is not object safe.

Implementors§

§

impl<'w, 's, Config, Clear> GizmoPrimitive3d<BoxedPolyline3d> for Gizmos<'w, 's, Config, Clear>
where Config: GizmoConfigGroup, Clear: 'static + Send + Sync,

§

type Output<'a> = () where Gizmos<'w, 's, Config, Clear>: 'a

§

impl<'w, 's, Config, Clear> GizmoPrimitive3d<Capsule3d> for Gizmos<'w, 's, Config, Clear>
where Config: GizmoConfigGroup, Clear: 'static + Send + Sync,

§

type Output<'a> = Capsule3dBuilder<'a, 'w, 's, Config, Clear> where Gizmos<'w, 's, Config, Clear>: 'a

§

impl<'w, 's, Config, Clear> GizmoPrimitive3d<Cone> for Gizmos<'w, 's, Config, Clear>
where Config: GizmoConfigGroup, Clear: 'static + Send + Sync,

§

type Output<'a> = Cone3dBuilder<'a, 'w, 's, Config, Clear> where Gizmos<'w, 's, Config, Clear>: 'a

§

impl<'w, 's, Config, Clear> GizmoPrimitive3d<ConicalFrustum> for Gizmos<'w, 's, Config, Clear>
where Config: GizmoConfigGroup, Clear: 'static + Send + Sync,

§

type Output<'a> = ConicalFrustum3dBuilder<'a, 'w, 's, Config, Clear> where Gizmos<'w, 's, Config, Clear>: 'a

§

impl<'w, 's, Config, Clear> GizmoPrimitive3d<Cuboid> for Gizmos<'w, 's, Config, Clear>
where Config: GizmoConfigGroup, Clear: 'static + Send + Sync,

§

type Output<'a> = () where Gizmos<'w, 's, Config, Clear>: 'a

§

impl<'w, 's, Config, Clear> GizmoPrimitive3d<Cylinder> for Gizmos<'w, 's, Config, Clear>
where Config: GizmoConfigGroup, Clear: 'static + Send + Sync,

§

type Output<'a> = Cylinder3dBuilder<'a, 'w, 's, Config, Clear> where Gizmos<'w, 's, Config, Clear>: 'a

§

impl<'w, 's, Config, Clear> GizmoPrimitive3d<Line3d> for Gizmos<'w, 's, Config, Clear>
where Config: GizmoConfigGroup, Clear: 'static + Send + Sync,

§

type Output<'a> = () where Gizmos<'w, 's, Config, Clear>: 'a

§

impl<'w, 's, Config, Clear> GizmoPrimitive3d<Plane3d> for Gizmos<'w, 's, Config, Clear>
where Config: GizmoConfigGroup, Clear: 'static + Send + Sync,

§

type Output<'a> = Plane3dBuilder<'a, 'w, 's, Config, Clear> where Gizmos<'w, 's, Config, Clear>: 'a

§

impl<'w, 's, Config, Clear> GizmoPrimitive3d<Segment3d> for Gizmos<'w, 's, Config, Clear>
where Config: GizmoConfigGroup, Clear: 'static + Send + Sync,

§

type Output<'a> = () where Gizmos<'w, 's, Config, Clear>: 'a

§

impl<'w, 's, Config, Clear> GizmoPrimitive3d<Sphere> for Gizmos<'w, 's, Config, Clear>
where Config: GizmoConfigGroup, Clear: 'static + Send + Sync,

§

type Output<'a> = SphereBuilder<'a, 'w, 's, Config, Clear> where Gizmos<'w, 's, Config, Clear>: 'a

§

impl<'w, 's, Config, Clear> GizmoPrimitive3d<Torus> for Gizmos<'w, 's, Config, Clear>
where Config: GizmoConfigGroup, Clear: 'static + Send + Sync,

§

type Output<'a> = Torus3dBuilder<'a, 'w, 's, Config, Clear> where Gizmos<'w, 's, Config, Clear>: 'a

§

impl<'w, 's, Config, Clear> GizmoPrimitive3d<Dir3> for Gizmos<'w, 's, Config, Clear>
where Config: GizmoConfigGroup, Clear: 'static + Send + Sync,

§

type Output<'a> = () where Gizmos<'w, 's, Config, Clear>: 'a

§

impl<'w, 's, T> GizmoPrimitive3d<Tetrahedron> for Gizmos<'w, 's, T>

§

type Output<'a> = () where Gizmos<'w, 's, T>: 'a

§

impl<'w, 's, const N: usize, Config, Clear> GizmoPrimitive3d<Polyline3d<N>> for Gizmos<'w, 's, Config, Clear>
where Config: GizmoConfigGroup, Clear: 'static + Send + Sync,

§

type Output<'a> = () where Gizmos<'w, 's, Config, Clear>: 'a