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!
