Skip to content

Instantly share code, notes, and snippets.

@Tak
Created December 10, 2013 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tak/7893630 to your computer and use it in GitHub Desktop.
Save Tak/7893630 to your computer and use it in GitHub Desktop.
In Box2D kinematic bodies only collide with other kinematic bodies therefore the second static body doesn't create a contact.
When you change the first body to be dynamic (un-check the IsKinematic property) then it's a dynamic body. Dynamic bodies do collide with static bodies.
Kinematic can collide with Kinematic
Dynamic can collide with Static & Dynamic
Static can collide with Dynamic
Box2D imposes this and not Unity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment