Skip to content

Instantly share code, notes, and snippets.

@ezirmusitua
Created May 10, 2019 04:09
Show Gist options
  • Save ezirmusitua/c5164de943aa121734f9e6f101831186 to your computer and use it in GitHub Desktop.
Save ezirmusitua/c5164de943aa121734f9e6f101831186 to your computer and use it in GitHub Desktop.
[Pass collider and detect collision] Enable pass through colider and detect collision #unity
  1. Enable Pass Through
    Tick Trigger Of Collider In Inspector

  2. Detect Collision Implement OnTriggerEnter method

private void OnTriggerEnter (Collider col) {
  // do something
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment