Hey everyone. I've finished the Pachinko challenge. The hardest part was to create a script so my bumpers would rotate in Z axis. But a bit of googling helped ) Here it is:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class zRotate : MonoBehaviour
{
public Vector3 rotateZ;
// Update is called once per frame
void Update()
{
transform.eulerAngles += rotateZ;
}
}
Hey everyone. I've finished the Pachinko challenge. The hardest part was to create a script so my bumpers would rotate in Z axis. But a bit of googling helped ) Here it is:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class zRotate : MonoBehaviour
{
public Vector3 rotateZ;
// Update is called once per frame
void Update()
{
transform.eulerAngles += rotateZ;
}
}
Made with