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:
- colliders same type. 2d , 3d colliders don't detect collisions each other.
- at least 1 participant of collision needs have rigidbody component attached.
- check
is triggernot selected on of colliders - pause game , check in scene view green boxes of colliders colliding
- check layers of gameobjects , check if should collide because of the layer based collision
Comments
Post a Comment