How to create a cinemachine custom camera offset in the aiming direction

Hello,

I am currently working on a top-down shooter game for mobile devices.

I use two dynamic joystics:

  1. to control the player movement
  2. to control the turret canon direction.

I am using a cinemachine virtual camera to follow my player.

I’d like to create a subtle camera offset in the aiming direction when my player is shooting.

(Something like in this game:

. See how the camera moves when the tank is shooting)

any idea on how to achieve that?

Thank you very much for your help

Looks like just a vCam that follows the targeting reticle or projectile.

1 Like

I’d like to create an empty gameobject which position moves in the joystick’s direction, with a max distance from the player. I’ll plan to asign this gameobject to the " to follow" in the Vcam settings. I tried many things but I am now stuck with the script