The ball being destroyed was working but after we got it to change to kinematic to dynamic it stopped being destroyed. Just need some help.
This is what i’m referring to in the first comment.
public class BallManager : MonoBehaviour
{
public Rigidbody2D rB;
void Start()
{
BallStartPos();
rB = GetComponent();
}
// Update is called once per frame
void Update()
{
if(Input.GetMouseButton(0))
{
rB.isKinematic = false;
}
}
Where are you destroying the object?
After some more time looking at what the problem really is I found out that the original trigger does destroy the object but the prefabs(of the same object) doesn’t.
Where is the destroy statement?
To destroy an Object you need to have something like below
Destroy(gameObject);