Skip to content

Instantly share code, notes, and snippets.

@wallace
Created May 19, 2013 13:57
Show Gist options
  • Save wallace/5607718 to your computer and use it in GitHub Desktop.
Save wallace/5607718 to your computer and use it in GitHub Desktop.
Vector3 floorNormal = new Vector3(0.0f,1.0f, 0.0f);
foreach(ContactPoint currentPoint in collision.contacts) {
if (currentPoint.normal.y != floorNormal.y) {
IsOnGround = false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment