bevy_sun_gizmo

Crates.iobevy_sun_gizmo
lib.rsbevy_sun_gizmo
version0.1.1
sourcesrc
created_at2024-04-20 12:46:26.181826
updated_at2024-04-21 14:31:01.773822
descriptionA simple gizmo for directional lights in Bevy
homepagehttps://github.com/davidasberg/bevy_sun_gizmo
repositoryhttps://github.com/davidasberg/bevy_sun_gizmo
max_upload_size
id1214579
size121,774
David Åsberg (davidasberg)

documentation

README

Crates.io docs.rs

Bevy Sun Gizmo

A screen recording showing the gizmo in action

Summary

Bevy Sun Gizmo is a plugin for the Bevy game engine that provides a simple gizmo for visualizing and controlling the direction of the sun (main directional light) in a 3D scene. It is heavily inspired by gizmo and controller found in Unreal Engine.

Features:

  • Gizmo for visualizing the direction of the sun
  • Mouse controls for changing the direction of the sun
  • Configurable gizmo size and position
  • Configurable key bindings for invoking the controller and gizmo

Controls

Hold RightCtrl + L to invoke the controller and gizmo, then use the mouse to change the direction of the sun.

How to use

Add the plugin:

.add_plugins(SunGizmoPlugin)

Check out the examples for more details.

Version Compatibility

bevy bevy_sun_gizmo
0.13 0.1.0

License

All code in this repository is dual-licensed under either:

at your option. This means you can select the license you prefer! This dual-licensing approach is the de-facto standard in the Rust ecosystem and there are very good reasons to include both.

Commit count: 6

cargo fmt