Rigidbody position lock

Hello everybody, I`m new in unity and I need some help…

I want to lock the position of a rigidbody.
For gear 1 I checked “is kinematic” and added this code:

[AddComponentMenu(“Scripts/Quests/SpinningSymbol”)]
public class rotation : MonoBehaviour
{
private void Update()
{
transform.Rotate(Vector3.forward * Time.deltaTime * 100);
}
}

I tried the same thing with gear 3 without code, but the collisions doesn`t work.

I want to create something like this.

Thanks in advance!

From what I can see the collider has no Physics Material. Try adding a Physics Material to the collider and see if it makes a difference.