- Home /
Object is rotating "step by step"
Hello, I'm trying to make an object rotate only on 1 axis without using any scripts for this task. I've frozen the position and the rotation on all but 1 axis and after I give it a little push my object starts to spin, however it isn't a smooth rotation and it looks like lag but it isn't.
I have a small clip to show what's happening: https://www.youtube.com/watch?v=7LN8qH-KgJs
The object that is actually spinning is an empty object and I'm using a child to represent it's body (the child is centered on the parent).
Does anyone know why this is happening and how I can try to fix it?
I still haven't been able to solve this, so far I've figured that the object is rotating in a normal way (If I give it a mesh it has a smooth rotation), however if I use childs to represent the body I get that laggy look.
Show us the script that is perfor$$anonymous$$g the rotation.
That's the thing, there is no script. I'm simply trying to use unity physics to make this thing rotate
Answer by IgorAherne · Aug 14, 2013 at 08:22 PM
Check that Edit ---> ProjectSettings ----> Time ----> max fixed time step is set to a 0.02 value;
also, I hope you are adding a force via the script, rather than spinning through quaternions in script. Remove angular drag from an object for it to spin infinitely.
The max fixed time step is set to 0.02.
And I'm trying to do this without a script. The object is supposed to be still until something else pushes on it's tip in order to create a spin.
Your answer
Follow this Question
Related Questions
Spinning a sphere, like a globe. 1 Answer
90 Degree stopping rotation on y-axis issue 0 Answers
LookAt on one axis 2 Answers
Transform.Translate but ignore rotation on one axis 0 Answers
Orbit Collision Axis 0 Answers