playMaker

Author Topic: Problem with camera [SOLVED]*  (Read 1827 times)

magarcan

  • Playmaker Newbie
  • *
  • Posts: 23
Problem with camera [SOLVED]*
« on: November 29, 2012, 08:16:33 AM »
Hi!

My idea was use Smooth Follow Camera in my main camera in order to follow my character... the idea was ok, but in reality:

Are there any way to prevent camera rotation?

Cheers!

PD: link to reference is not working.
« Last Edit: November 29, 2012, 02:46:42 PM by magarcan »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15496
  • Official Playmaker Support
Re: Problem with camera
« Reply #1 on: November 29, 2012, 11:11:47 AM »
Hi,

 you simply need to do the following:

 create a dummy gameObject. This dummy follows the position of your player, ONLY the position, then you have the camera to follow that dummy, and not your actual character.

bye,

 Jean

magarcan

  • Playmaker Newbie
  • *
  • Posts: 23
Re: Problem with camera [SOLVED]
« Reply #2 on: November 29, 2012, 11:33:46 AM »
I make that using Get Position and Set Position every frame. Is that the best way?
« Last Edit: November 29, 2012, 02:46:13 PM by magarcan »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15496
  • Official Playmaker Support
Re: Problem with camera [SOLVED]*
« Reply #3 on: December 11, 2012, 05:36:02 PM »
Hi,

 yep, that will do.

bye,

 Jean