unity3d - Why Isn't My 2D Box Collider Working? -


i'm making boundaries characters in 2d game in unity 5. added box colliders borders , characters characters don't stop when run other borders.

i don't have experience of unity 5, these things work old versions of unity.

colliders can used stopping things go inside each other without writing own oncollisionenter function.

so there must other problem. check that:

  1. colliders same type. 2d , 3d colliders don't detect collisions each other.
  2. at least 1 participant of collision needs have rigidbody component attached.
  3. check is trigger not selected on of colliders
  4. pause game , check in scene view green boxes of colliders colliding
  5. check layers of gameobjects , check if should collide because of the layer based collision

Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -