bevy_map_camera
A 3D camera controller inspired by Google Maps, f4maps and Charge Finder.
Based upon LookTransform, LookAngles and Orbital Camera Controller from smooth-bevy-cameras
.
Features
- Orbital camera
- Zoom towards pointer
- Grab pan
- Configurable height
- Camera target follows XZ-plane
- Support for Perspective and Orthographic projection
- Smoothed movement
- Customizable keyboard/mouse controls
- Touch support
- One finger pan
- Two finger rotate
- Pinch to zoom
- Supports Easing though
bevy_easings
, part ofdefault
features.- Implemented for
LookTransform
- Implemented for
- Supports Tweening through
bevy_tweening
, requiresbevy_tweening
feature.- Lenses
LookTransformLens
GrabHeightLens
- Lenses
Quick Start
use *;
use ;
Check out the projection example to see how to change between Perspective and Orthographic.
Compatible Bevy versions
bevy_map_camera | bevy |
---|---|
0.3 | 0.16 |
0.2 | 0.15 |
0.1 | 0.14 |