Hi again. Im having a issue getting sphere casting to work at all. Here what i got, seem simple enough, but it dont work.
var hit : RaycastHit;
if(Physics.SphereCast(hand.position, 15.0f, hand.forward, hit, shootDistance)){
if(hit.collider.tag == "Zombie"){
}
Debug.Log(hit.collider.tag);
}
I mean i made the radius so damn big , shouldn’t it pick up the zombie right in front of me ?
If i use the same variables , in a Debug.DrawLine, it draws line right to the zombie no problem. I should mention though , that the colliders in question im trying to detect, are characterContrller… is this possible?