playMaker

Author Topic: Camera Stuttering/ Jittering Badly  (Read 3274 times)

Prototype_6492

  • Junior Playmaker
  • **
  • Posts: 50
Camera Stuttering/ Jittering Badly
« on: July 11, 2015, 02:48:37 PM »
Any Help? The main camera seems to jitter and stutter pretty bad when running side to side. Im using the Platform 2D camera, but my game is 2D but with 3d objects and everything..

Splankton

  • Sr. Member
  • ****
  • Posts: 268
Re: Camera Stuttering/ Jittering Badly
« Reply #1 on: July 12, 2015, 09:37:46 AM »
Use the profiler to see what is causing the stuttering.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Camera Stuttering/ Jittering Badly
« Reply #2 on: July 12, 2015, 09:41:31 AM »
Hi,

 the juttering is cause by the fact that the camera is following a target that is a physics gameobject, and when you do so, the camer must get the position on late update, not on update.

 use the "xxx" advanced ( set position advanced, or set position advanced for example) versions on the Ecosystem to rebuild your camera following behavior so that all movement happens on late update, then all will be smooth again.

Bye,

 Jean

Prototype_6492

  • Junior Playmaker
  • **
  • Posts: 50
Re: Camera Stuttering/ Jittering Badly
« Reply #3 on: July 14, 2015, 05:17:28 AM »
Hey Jean!


So i got the set position advanced, I just set it to an FSM on the camera with the 2D platform script, click use owner, every frame, and on late update?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Camera Stuttering/ Jittering Badly
« Reply #4 on: July 15, 2015, 11:04:42 AM »
Hi,

 yes, late update is what you need
don't forget that you also need to get the position of your physics object on late update too, else that won' work, both the getter and the setter have to be on the late update for no stuttering.

 Bye,

 Jean