I’m new to Unity and need to know 3d collision. I need the game to close when the player touches a 3d object
-
Add a collider and a rigidbody component to both the player and the 3d object
-
Check the “IsTrigger” on the player collider but uncheck it in the 3d object collider
-
On the player, add a new script and add this code
void OnTriggerEnter(Collider collide) {
Application.Quit()
}