playMaker

Author Topic: Camera jittering when moving  (Read 8648 times)

VivaLaBaz

  • Playmaker Newbie
  • *
  • Posts: 23
Re: Camera jittering when moving
« Reply #15 on: January 02, 2021, 07:08:52 AM »
Sorry for bumping an old topic but any progress on this?

Odd_But_Awesome

  • Playmaker Newbie
  • *
  • Posts: 22
    • Odd but Awesome
Re: Camera jittering when moving
« Reply #16 on: March 13, 2021, 08:59:20 AM »
Hi,

Did this script ever get written? I couldn't find it on the ecosystem.

It felt like I solved my camera jittering bit by bit - deparented camera, extrapolate on the aircraft but now the landscape is jittering and not the ship. Maybe it was all along but my attention was focused on the ship.

Cheers
JJG
Check out my games & VR Cardboard titles at https://oddbutawesome.weebly.com/apps-new.html

kwint

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Camera jittering when moving
« Reply #17 on: June 27, 2021, 12:46:36 AM »
Got the same issue.

I'm trying to make a free fly cam using Set Velocity to move on axis and Mouse Look to rotate the camera.

Individually they work good but when mixing both actions (typically rotating around an object) I got some jittering, it's not smooth.

I also tried Set/Get Position / Rotation Advanced to be able to get the LateUpdate (In this case the camera follows a gameobject controlled by Set Velocity and Mouse Look) with the same results.

It would be great to have a workaround or something.




« Last Edit: June 27, 2021, 12:49:36 AM by kwint »

SawyerK

  • Junior Playmaker
  • **
  • Posts: 99
Re: Camera jittering when moving
« Reply #18 on: November 22, 2023, 02:19:14 PM »
Is there any update on this I'm having the same problem and the script attached doesn't work anymore.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Camera jittering when moving
« Reply #19 on: November 23, 2023, 05:58:06 AM »
Hi.
Do you have interpolate enabled on your rigidbody?

SawyerK

  • Junior Playmaker
  • **
  • Posts: 99
Re: Camera jittering when moving
« Reply #20 on: November 24, 2023, 08:14:51 AM »
Hi.
Do you have interpolate enabled on your rigidbody?
Yes, the problem is:
My rigidbody character controller jitters when moving and turning at the same time. Moving or turning  seperatedly works fine.

I use Mouse Look to turn the rigidbody and I use Set Velocity for mevement. Could this cause the jitter? Mouse Look and Set Velocity not working very well with each other?
Rigidbody is set to Interpolate and Continuous collision.
Also this jitter disappears when the game is forced to 50fps, but that is not a good solution.

I read that Mouse Look manipulates the object's transform directly, that overrides anything the physics system can do (Set Velocity) and it has to play catch up to reconcile the discrepancy in simulations, which is why it causes jitter.

Is there any other method for turning the player that uses rigidbody's physics instead of Mouse Look?
Or can the Mouse Look action be set to use physics like Set Velocity and not transform?
Can Mouse Look action be rewritten to be in fixed update, so it can be used for rigidbody character?