Last active
October 5, 2018 11:04
-
-
Save charlieamat/9be70c111b875e1f8f672327b930c0f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyCollaborator : MonoBehaviour | |
{ | |
private void OnCollisionEnter(Collision collision) | |
{ | |
foreach (ContactPoint contact in collision.contacts) | |
{ | |
Debug.DrawRay(contact.point, contact.normal, Color.white); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment