playMaker

Author Topic: Camera following the player  (Read 1014 times)

Ronnie gaikwad

  • Playmaker Newbie
  • *
  • Posts: 22
Camera following the player
« on: March 10, 2020, 01:20:13 AM »
Hi my player is moving along z axis and I want the camera to follow it.. I tried using smooth follow action but it doesn't fits my requirements.. I don't want the camera to move along x axis when the player moves along x axis while moving forward in z direction. Also i can't use empty object for smooth follow action because the speed of the player varies as it is a car and the empty object will probably have only velocity in z direction so the camera won't be able to follow the player perfectly. So how can i make the camera follow the player? I want the camera to be stable and not to move along x axis and just to follow the car in z axis?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Camera following the player
« Reply #1 on: March 10, 2020, 02:43:45 AM »
Hi,

 Make sure to check out Cinemachine, it provides an amazing set of features for camera work, that surely will fit your needs, and it's all setup in components.

Bye,

 Jean

Ronnie gaikwad

  • Playmaker Newbie
  • *
  • Posts: 22
Re: Camera following the player
« Reply #2 on: March 10, 2020, 03:21:39 PM »
Getting errors on unity 2019.2.11 i tried using cinemachine 2018 as there was no package for 2019

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Camera following the player
« Reply #3 on: March 11, 2020, 02:18:03 AM »
Hi,

- are you using Cinemachine from the packages, or from the Asset Store?
- What error do you get?

 I use cinemachine on all of my projects, including 2019 and sometimes the Unity packagers is very capricious, I give you that, especially if you upgrade the project from 2017 or 2018...

Bye,

 Jean