Skip to content

Instantly share code, notes, and snippets.

@charlieamat
Last active October 5, 2018 11:04
Show Gist options
  • Save charlieamat/9be70c111b875e1f8f672327b930c0f8 to your computer and use it in GitHub Desktop.
Save charlieamat/9be70c111b875e1f8f672327b930c0f8 to your computer and use it in GitHub Desktop.
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