- BevyTridentAxis: add a custom axis trident
- BevyViewcube:
- SimpleViewcube: just 6 faces
- PowerfulViewcube:
- 6 faces
- 12 edges
- 8 corners
- bevy_mod_picking
- bevy_panorbit_camera
use bevy_viewcube::prelude::*;
commands.spawn((
MaterialMeshBundle {
mesh: meshes.add((BevyTridentAxis::default()).into()),
material: materials.add(StandardMaterial::default()),
..Default::default()
},
));
also pre-defined
// 1 unit size
BevyTridentAxis::default()
// 10
BevyTridentAxis::TRIDENT_10
// 100
BevyTridentAxis::TRIDENT_100
customize:
let trident = BevyTridentAxis {
axises: [
BevyTridentArrow {...},
BevyTridentArrow {...},
BevyTridentArrow {...},
]
}
Currently, occupies 0.3x0.4(wh) in the lower left corner of the window.
Need to add dependency crates
use bevy_panorbit_camera::{
PanOrbitCamera,
PanOrbitCameraPlugin
};
use bevy_mod_picking::prelude::*;
- Simple
App::new()
.add_plugins(DefaultPlugins)
.add_plugins(PanOrbitCameraPlugin)
.add_plugins(DefaultPickingPlugins)
.add_plugins(BevyViewCubePlugin::default())
- Powerful
replace to
.add_plugins(BevyViewCubePlugin{use_powerful_viewcube:true})
bevy | bevy_viewcube |
---|---|
0.12 | 0.1.0 |