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§
- Mint - Math interoperability standard types.
Macros§
- Creates a EnumSet literal, which can be used in const contexts.
Structs§
- This format is used for space-efficient color representation (32 bits).
- An efficient set type for enums.
- A 3D transformation gizmo.
- Marker used to specify which camera to use for gizmos.
- Configuration of a [
Gizmo
]. - Data used to draw
Gizmo
. - Information needed for interacting with the gizmo.
- Various options for configuring the transform gizmos. Many of these options are
- Marks an entity as a gizmo target.
- Controls the visual style of the gizmo
- A position on screen.
- A rectangular region of space.
- Adds transform gizmos to the App.
Enums§
- Operation mode of a gizmo.
- Result of a gizmo transformation