Rigid Body Error Help Please

2d Game

Im trying to load the next level when the ball reaches the last board but it keeps going through and i get an error saying their is no rigid body attacked to the ball. I have the 2d rigid body and circle collider attached. The game is a physics game so i need the rigid body.

Any ideas?

#pragma strict

var levelToLoad : String;

function OnTriggerEnter(hit : Collider)
{
Application.LoadLevel(levelToLoad);
}

All 2D versions of their collision functions end on 2D

function OnTriggerEnter2D(hit : Collider2D)

Got it thank you! Im still learning programming and that helped a bunch :slight_smile: