playMaker

Author Topic: Smooth Follow Action - Rotation Issue  (Read 2930 times)

intrikit

  • Full Member
  • ***
  • Posts: 132
    • Defiant Child
Smooth Follow Action - Rotation Issue
« on: October 08, 2013, 02:40:53 AM »
I am making a side scroller with a camera that should follow the player horizontally, as with classic platformers out there. I used the Smooth Follow Action on my camera and applied a gameobject which is a child of my actual player (and placed appropriately so that there is no weird transition when I change the horizontal direction) and used that as the Target Object. Then I set the Rotation Damping to zero so that there is no camera rotation.

This all works pretty well aside from an extremely slight twitch when changing direction but is a thorn to the side of the perfectionist in me as well as a warning in the console saying "Look rotation viewing vector is zero". Should this be a concern and if it is, does anyone have alternative methods?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Smooth Follow Action - Rotation Issue
« Reply #1 on: October 08, 2013, 03:08:23 AM »
Hi,

you need to have a look at target that is not at the same position as the follower, else it doesn't know where to look. So try to add an offset to your target so that there is always a distance between your player and the target.

bye,

 Jean