Hi! I want to create a simple game using 3D objects and AR Foundation in Unity 3D.
My tablet shows, thanks to the camera, the space in front of me and I’ve instantiate in the space 5 rats that I want to catch.
So, I need a script that destroy the single rat when it is touched.
Do you have any advice or suggestions?,
Use OnCollision to kill your rat when touched, you will need rigidbodies and colliders attached.