Genesis icon indicating copy to clipboard operation
Genesis copied to clipboard

Feature/camera tracking drone

Open PieterBecking opened this issue 11 months ago • 2 comments
trafficstars

Camera tracking the drone while flying

Changes

  • Modified camera initialization to position it behind the drone instead of at its side
  • Updated camera tracking logic to maintain the "from behind" perspective while following the drone
  • Adjusted camera offset values for better viewing angle (4 units back, 2 units up)

Benefits

  • More intuitive drone control as forward/backward movements align with the camera view
  • Better visibility of the drone's heading direction

Details

  • Updated update_camera() function offsets to maintain consistent behind-view perspective
  • Camera now follows drone with defaults:
    • X offset: 0.0 (centered horizontally)
    • Y offset: -4.0 (4 units behind in Y axis)
    • Z offset: 2.0 (2 units above)

Controls

Same as before

Testing

  • Confirmed improved control intuitiveness with the new perspective
  • Tested smooth camera transitions during rapid direction changes

PieterBecking avatar Dec 22 '24 19:12 PieterBecking