Answers for "unity how do colliders work"

C#
0

how to make colliders collide with some things but not other in unity

//ignores all collisions between the object collided with and the 
	//gameobject that this script is attached to

Physics.IgnoreCollision(
	collision.gameObject.GetComponent<SphereCollider>(), 
	gameObject.GetComponent<SphereCollider>());
Posted by: Guest on April-22-2021

C# Answers by Framework

Browse Popular Code Answers by Language