Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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>());
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity play sound effect 
Csharp :: how to import datagridview to datatable in c# 
Csharp :: c# change label from thread 
Csharp :: callback function on animation end unity 
Csharp :: string list to object array in c# 
Csharp :: camera follow script car unity 
Csharp :: average c# 
Csharp :: textbox in xamarin forms 
Csharp :: c# int to string 
Csharp :: check if string variable contains only letters c# 
Csharp :: particle system start color 
Csharp :: how to work with ascii in c# 
Csharp :: unity audio manager 
Csharp :: relative path c# 
Csharp :: c# remove first 5 characters from string 
Csharp :: byte array to base64 c# 
Csharp :: c# do while 
Csharp :: switch expression c# 
Csharp :: unity get game version 
Csharp :: how to select time and date in datetimepicker in c# 
Csharp :: c# get total milliseconds from datetime 
Csharp :: how to get total scenes unity 
Csharp :: remove duplicate characters in a string c# 
Csharp :: how to print statement in c# 
Csharp :: c# remove all whitespaces from string 
Csharp :: linq query get last day of month 
Csharp :: c# close program 
Csharp :: LINQ query on a DataTable C# 
Csharp :: c# how to print 
Csharp :: emgucv open image c# 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =