Struct bevy_yoleck::vpeol_3d::Vpeol3dPluginForEditor
source · pub struct Vpeol3dPluginForEditor {
pub drag_plane: InfinitePlane3d,
}
Expand description
Add the systems required for 3D editing.
- 3D camera control (for cameras with
Vpeol3dCameraControl
) - Entity selection.
- Entity dragging.
- Connecting nested entities.
Fields§
§drag_plane: InfinitePlane3d
The plane to configure the global VpeolDragPlane
resource with.
Indiviual entities can override this with their own VpeolDragPlane
component.
It is a good idea to match this to Vpeol3dCameraControl::plane
.
Implementations§
source§impl Vpeol3dPluginForEditor
impl Vpeol3dPluginForEditor
sourcepub fn sidescroller() -> Self
pub fn sidescroller() -> Self
For sidescroller games - drag entities along the XY plane.
Indiviual entities can override this with a VpeolDragPlane
component.
Adding Vpeol3dThirdAxisWithKnob
can be used to allow Z axis manipulation.
This combines well with Vpeol3dCameraControl::sidescroller
.
sourcepub fn topdown() -> Self
pub fn topdown() -> Self
For games that are not sidescrollers - drag entities along the XZ plane.
Indiviual entities can override this with a VpeolDragPlane
component.
Adding Vpeol3dThirdAxisWithKnob
can be used to allow Y axis manipulation.
This combines well with Vpeol3dCameraControl::topdown
.
Trait Implementations§
source§impl Plugin for Vpeol3dPluginForEditor
impl Plugin for Vpeol3dPluginForEditor
source§fn ready(&self, _app: &App) -> bool
fn ready(&self, _app: &App) -> bool
finish
should be called.source§fn finish(&self, _app: &mut App)
fn finish(&self, _app: &mut App)
App
, once all plugins registered are ready. This can
be useful for plugins that depends on another plugin asynchronous setup, like the renderer.source§fn cleanup(&self, _app: &mut App)
fn cleanup(&self, _app: &mut App)
Auto Trait Implementations§
impl Freeze for Vpeol3dPluginForEditor
impl RefUnwindSafe for Vpeol3dPluginForEditor
impl Send for Vpeol3dPluginForEditor
impl Sync for Vpeol3dPluginForEditor
impl Unpin for Vpeol3dPluginForEditor
impl UnwindSafe for Vpeol3dPluginForEditor
Blanket Implementations§
source§impl<T, U> AsBindGroupShaderType<U> for T
impl<T, U> AsBindGroupShaderType<U> for T
source§fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U
T
ShaderType
for self
. When used in AsBindGroup
derives, it is safe to assume that all images in self
exist.source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.