Hello. I have four legged player with small character controller. It doesn't envelope it completely so it can interact with other objects properly. I am using a raycast to detect if the mouse is over it, but it only looks at its collider.
I am trying to groom it with different objects (icons like brushes that follow the mouse). I want the ray cast to look at its whole mesh though if it is possible?
asked Mar 30 '11 at 09:35 AM
You can create your own compound collider by adding sub colliders to each bones or empty game objects set as the characters children. Then you can check the bone names for raycast too.
Another option would be to create a big box or sphere collider around the object and set it to ignore all collisions so it can only be detected by the raycast.
answered Mar 30 '11 at 10:09 AM