- Home /
problem in Archery game
i'm new in unity as you see in img . it is an Archery game i want when player left click on mouse, arrow move forward and when it hit the circle , points are add to player all the above is easy , but the problem when arraw collide the circle i made 5 circles ( yellow,red,blue,black and white) with mesh collider and OnTriggerEnter function but it doesn't work and (Is Trigger) is enabled when i apply box collider it works but i don't box collider i want it work with mesh collider i also tried to use RayCast but arrow doesn't move
sorry for weak english and THANKS in advance.
Answer by robertbu · Jul 22, 2014 at 03:09 AM
By default, mesh to mesh collisions do not register. If one of your objects has less that 255 triangles, you can mark that object as Convex in the Collider and they should collide.
See Convex here:
http://docs.unity3d.com/Manual/class-MeshCollider.html
You could use a box collider and then calculate the distance from the center for scoring.
YES!!! you 're right. it works correctly thank you
the solution is : i should make a Box collider to arrow and it works :)