Ball is not rolling

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); 
	}		
}

Hi luke_klymshyn,

Firstly, the ball going through the pins is “normal” at this stage in the videos - that’s addressed later.

There are a few things I can think of to check (if you haven’t gotten to it first :slight_smile:):

  1. Do you have a Sphere Collider on your Ball?
  2. Do you have a Box Collider on your Floor?
  3. Have you set launchspeed in the inspector?

Hope this helps. :slight_smile:

Thanks Dean I accidently turned on the colliders on my ball and lane. HAHA :laughing: