Hey, I’m trying to make a pong game, just a simple 2 player and a ball,
This is the script that is attached to the Ball
using UnityEngine;
using System.Collections;
public class NewBehaviourScript : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnCollisionEnter2D(Collision2D col){
Debug.Log("Collision detected!");
}
}
I want to check whenever something collide with the ball, the debug log would show the text but it seems not to do anything
Can anyone give me some pointers on what I sould check?? Oh and yes the Player has Rigidbody2d Is Kinematic set as off