- Home /
How can I avoid jitter of house?
I move player with animation. And rotate player with rigidbody rotation . Camera follow player and rotate around player smoothly. It is not any problem with camera and player. They move smoothly.
But the problem is : When I move near the house or object , the object is jitter a little and it tired my eyes.
Please help me ,how to solve this?
thanks in advance
There isn't a lot to go on here. What is the house? What object is jittering: the house, the player, or something else? What are the other objects? You will probably need to provide more information for people to help you. You should post your movement / camera movement script, house script (if there is one), and probably an inspector screenshot so we know what components are on your objects. :)
Is your player marked "is$$anonymous$$inematic"? If you are moving a Rigidbody without physics, it should be marked as kinematic.
Also, be aware that when moving a Rigidbody by an animation, it will not respect physics. So, you might get weird jittery interactions when near Colliders.
No it is not marked as iskinematic But i move player just use animation, it causes this?
How can i solve this
If you are going to move a Rigidbody by animation, it should probably be kinematic. I can't say for sure whether that or the animation is causing the problem because I can't see the problem. If you had a video or even a gif for us to watch, then we could give you better answers. Otherwise, it is really hard to answer with such little information. Sorry..
I bet the player does not jitter because the camera is attached to him/her. But in fact, the camera jitters with the player.
It can happen because you have two ways of moving the player: via animation and via physics. Try disabling one of those ways.
And give us your code to check as well as the screenshots of your hierarchy and player object's components.
Your answer
Follow this Question
Related Questions
Networked Movement Jitter 0 Answers
Camera jitters / lag behind when jumping or falling 2 Answers
Player movement not working with unity 5 1 Answer
Problem with jumping in fps game 1 Answer
How to drag object faster to the ground? 3 Answers