Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: hellzer on February 22, 2020, 04:20:39 PM
-
I have been working on this FPS game. I started to see that when I move my character, while rotating and while keeping an object centered to the screen, the camera jitter.
When I move on the X or Z axis I have no issue but when I start rotating the camera the jitter start.
My camera is attached (a child) to the gameobject who move. The gameobject has a character controller + a mouse look for the rotation of the camera. I am using translate to move on the XYZ vector of the map.
I have a video to show it.
(I'm not sure if its related to playmaker or unity, but I could not find anything after few hours of videos and forums)
-
Hi.
Usually this is a update type issue, check if your update type on rotate and translate is in fixed update.
Also in most cases it is better to have the camera separate and let it follow the player with get/set position
-
Thanks for the reply, I have putted everything on fixed update or late update and even without update the issue still occurs. I detached my camera from the capsule and set up get/set position so the camera can follow the capsule.
The issue keep occurring but with more jittering!
I dont know if its because I use mouse look or the fact that I need to use rigid body or a Character Controller component?
-
Hi,
get and set position are not using lateupdate, you need to use the custom actions GetPositionAdvanced and SetPositionAdvanced for this.
Bye,
JEan
-
I used the get position advance and set position advance with get/set rotation advance. All set to on update, all set to every frame and I still got the jittering when turning around an object. I even try to put them all late update or fixedupdate and it didn't work.
I also change my translate for the advanced one. I get my axis with Get Axis Vector and camera is still a Mouse Look. Everything is set to self space and the camera is not attached to anything.
I watched some "How to set up FPS controller with playmaker" videos on youtube before posting here my issue and they all had this issue in their videos.
:'(
-
Hi.
On update is not a good setting for physics, most of the time fixed update gives the best result.
If you look in scene view, do you see jittering? if so then there is something else wrong.
if not then its a camera refresh issue (update issue)
-
I tried all of them on update, fix update, etc...
In the viewport with top down view, its smooth but when I press play and go in FPS mode the camera jitter when rotating. I try to put a rigid body or a character controller and the issue still persist. on the viewport
(Fix Update makes the jittering worst...)
I think it's the Mouse Look the issue but I cant set it up On update, Fixe update etc...
-
Do we have a way to make the mouse look to Fix update?
-
So I got a camera script on a random forum "smooth mouse look" and the issue was fix!
Playmaker is the issue and the mouse look action is causing the jittering whatever what I do. I disable the mouse look action on the camera and the smooth movement was working from the script but when I turn off the script and enable the mouse look from playmaker, the camera was jittering.
It would be nice that you guys could make a mouse look smooth action or something that will smooth the rotation while moving. :)
-
Hi.
Can you link the script, i can see if i can convert to a single action.
you can actually achieve this but with multiple actions, but it might be better if it can be done i 1 action.
-
So what I would like to have for me and the community is a mouse look that smooth itself without using other actions with playmaker.
The script has a smoothing effect but it's not a general one and it was for a FPS specific game.
It would be appreciate if you could look into the script and mix it with the Mouse Look action to create a General Smooth Mouse Look action.
The script has a weird feeling of rotation but it fix the jittering issue when moving my capsule character and rotating the camera.
-
Bump
-
Hi,
I'll have a look next week, please bump me mid week ok? thanks.
Bye,
Jean
-
I dont know if I was supposed to send you a private message or bumping you are?
Bump
(I already sent you a private message)
-
Hi,
sorry, running behind, you are on my todo :)
Bye,
Jean
-
Sorry for bumping an old topic but any progress on this?
-
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
-
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.
-
Is there any update on this I'm having the same problem and the script attached doesn't work anymore.
-
Hi.
Do you have interpolate enabled on your rigidbody?
-
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?