Tuesday, February 20, 2018

unity - Ignore physics material on raycast shooting?


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

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...