Hello could someone please help me! the ball doesn’t roll on the floor and when it does get to the end it goes right through the pins. Please help here is my ball script (Movement is the ball script).
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Movement : MonoBehaviour {
public float launchspeed;
public Rigidbody rb;
void Start (){
rb = GetComponent<Rigidbody>();
rb.velocity = new Vector3 (0, 0, launchspeed);
}
}
):