Crate transform_gizmo_bevy

Source
Expand description

A 3D transformation Gizmo for the Bevy game engine.

transform-gizmo-bevy provides a feature-rich and configurable 3D transformation gizmo that can be used to manipulate entities’ transforms (position, rotation, scale) visually.

§Usage

Add TransformGizmoPlugin to your App.

use bevy::prelude::*;
use transform_gizmo_bevy::prelude::*;

App::new()
    .add_plugins(DefaultPlugins)
    .add_plugins(TransformGizmoPlugin)
    .run();

Add GizmoCamera component to your Camera entity.

Add GizmoTarget component to any of your entities that you would like to manipulate the Transform of.

§Configuration

You can configure the gizmo by modifying the GizmoOptions resource.

You can either set it up with App::insert_resource when creating your App, or at any point in a system with ResMut<GizmoOptions>.

Modules§

config
gizmo
math
mint
Mint - Math interoperability standard types.
mouse_interact
picking
prelude

Macros§

enum_set
Creates a EnumSet literal, which can be used in const contexts.

Structs§

Color32
This format is used for space-efficient color representation (32 bits).
EnumSet
An efficient set type for enums.
Gizmo
A 3D transformation gizmo.
GizmoCamera
Marker used to specify which camera to use for gizmos.
GizmoConfig
Configuration of a gizmo.
GizmoDragStarted
GizmoDragging
GizmoDrawData
Data used to draw Gizmo.
GizmoHotkeys
Hotkeys for easier interaction with the gizmo.
GizmoInteraction
Information needed for interacting with the gizmo.
GizmoOptions
Various options for configuring the transform gizmos.
GizmoTarget
Marks an entity as a gizmo target.
GizmoVisuals
Controls the visual style of the gizmo
Pos2
A position on screen.
Rect
A rectangular region of space.
TransformGizmoPlugin
Adds transform gizmos to the App.

Enums§

GizmoDirection
GizmoMode
Operation mode of a gizmo.
GizmoOrientation
Orientation of a gizmo.
GizmoResult
Result of a gizmo transformation