I created a cone in blender and added it to the head of an NPC in Unity as a field of vision detector. I disabled the mesh and just left the mesh collider. Now i realized i cant shoot the NPC when he is looking at me and the cone is in between us.
I have seen i can assign a physics material to the mesh collider.. Can i put a specific physics material on the cone and ignore it when doing a raycast (shooting) from the player on it (the npc)? I only found friction and bounciness options.
No comments:
Post a Comment