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

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

Code answers related to "how to make colliders collide with some things but not other in unity"

C# Answers by Framework

Browse Popular Code Answers by Language