The example follows the cube:
- on
OrbitCamera
we store the target which is the cube's entity - we attach this
OrbitCamera
component to the camera entity - on the cube entity we attach the marker
OrbitCameraTarget
component
Use mousewheel to zoom
Press and hold the mousewheel down, and drag to rotate