Hi everyone.
I have a GameObject with two childs, The chils only have a Transform component and sprite renderer.
The GameObject represent a person so the childs are a head and a body.
When either the father move or only the childs ,the head start to shake, but it is only visible in Tab game, in the tab Scene it don’t happen.
The camera don’t follow the Gameobject so it is fixed.
The sprite that move the Gameobject is it:
this.transform.Translate ((this.transform.right * 2) * Time.deltaTime);
I tried it in Update() and FixedUpdate() but I got the same result.
Also I have tried it by rigidbody but the result is the same.
I saw when the resolution is lower the shake is more than in bigger resolution.
Thanks for reading me
Thanks for the link, but my gameobjects are near 0.0. I have made a video to show what is the problem.
Here is the video:
I saw that in scene tab also happen that, but it less.
Thanks for your time
Are you sure this isn’t just the normal erratic frame time causing this? That’s what it looks like to me.
Try a desktop build then select full screen and see if it smooths out. Also if you are not already doing so you should use time.deltatime for your movement updates so they become framerate independent. They may occasionally glitch around but at least the overall speed will be consistent.
1 Like
Thanks, when it is in full screen it smooths out and i already used Time.deltatime.
You can be right, it could be the normal erratic frame time, but it is the first time that happen to me. Anyway, I don’t have much time to investigate it, so if I find what is causing it I will write it here. Thanks for your help and your time