- Home /
Rigidbody making object rotate despite locks
I'm trying to make an asteroids game and want to play with the physics. My sprites are glued to the faces of 10x10 cubes that are .01 width.
When I add a rigidbody component the cubes rotate on the x and y axis slightly as soon as the game is started. I have them locked for rotation in the x and y direction and locked from movement in the z direction.
Also gravity is turned off for them. Is there an explanation for why the x and y rotations re-calculate or change when a game is started?
Answer by ExpiredIndexCard · Mar 27, 2013 at 12:27 AM
Try checking the check box titled "Kinematic". Tell me if that works :)
Setting kinematic prevents the rotation on the locked axes but also prevents forces from being applied to the object.
I'm interested in preventing the rotation I'm more interested in knowing why it happens. Gravity is turned off. There are no forces being applied to he object. Yet the rotation numbers change in all 3 axes as soon as play starts.