Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

On Trigger Unity

"          |  Static   |  Dynamic  | Kinematic |  Static  |  Dynamic  | Kinematic |"
"          |           |           |           |  Trigger |  Trigger  |  Trigger  |"
----------------------------------------------------------------------------------
" Static  "|           | Collision |           |          |  Trigger  |  Trigger  |
"         "|           |           |           |          |           |           |
----------------------------------------------------------------------------------
" Dynamic "| Collision | Collision | Collision |  Trigger |  Trigger  |  Trigger  |
"         "|           |           |           |          |           |           |
----------------------------------------------------------------------------------
"Kinematic"|           | Collision |           |  Trigger |  Trigger  |  Trigger  |
"         "|           |           |           |          |           |           |
----------------------------------------------------------------------------------
" Static  "|           |  Trigger  |  Trigger  |          |  Trigger  |  Trigger  |
" Trigger "|           |           |           |          |           |           |
----------------------------------------------------------------------------------
" Dynamic "|  Trigger  |  Trigger  |  Trigger  |  Trigger |  Trigger  |  Trigger  |
" Trigger "|           |           |           |          |           |           |
----------------------------------------------------------------------------------
"Kinematic"|  Trigger  |  Trigger  |  Trigger  |  Trigger |  Trigger  |  Trigger  |
" Trigger "|           |           |           |          |           |           |
----------------------------------------------------------------------------------

// This shows how 2 objects (both having a rigidbody component) interact.
// Empty => They don't interact
// Collision => You can use OnColisionXXX
// Trigger => You can use OnTriggerXXX

//Hope it helps <3
Source by www.patrykgalach.com #
 
PREVIOUS NEXT
Tagged: #On #Trigger #Unity
ADD COMMENT
Topic
Name
3+8 =