My ball movements are not syncronized with the camera .

Hello,

I’m doing a Roll A Ball game, I followed the tutorial of Unity on Youtube to have a ball that I can control. But I added a camera that I can move with my mouse around the ball, When I play the game, I can move with the ball by pressing W, but if I turn the camera and I redo W, my ball go in the same direction as before, I need the controls of the ball are syncronized with the camera.

Thx for help.

maybe u say that u want the camera following the ball(player) movement?
You can use “Cinemachine” for that. But first you must download the package, here’s the tutorial : 2D Camera in Unity (Cinemachine Tutorial) - YouTube

Hope it’ll helps

I dont need the camera follow the movement , i need the movement is relative to camera.

Like in this video :


But the video is with joystick and i dont really know how to do it for pc and controller.