Rotation is followed by change in position


I am rotating a knob (that represents the washing machine rotating knob) along x-axis, using the formula “knob.rotate(0, FastMath.PI * g / 180, 0);”.

However, everytime the knob rotates, its position is also changed :frowning: which i don’t want.

Can anyone please tell me how i can solve it?

Thanks and hope someone would reply,


Seems like your geometry is off-center. You can use the center() method to move the geometry so that its apparent center is in the center of all the geometries vertices.


Thanks so much for your quick reply.

Yes, this was the problem, now i have centered my knob and everything is fine.


1 Like