hello,
I want some information…can we write code for camera collision…
Actually i done, that camera taken as spherecollider and tagged the camerea,i collision function for that,it is not working…
void OnControllerColliderHit(ControllerColliderHit hit)
{
Debug.Log (hit.gameObject.tag);
if(hit.gameObject.tag == “MainCamera”)
{
Debug.Log(hit.gameObject.tag);
}
}
…my english is por…pls understand my problem…
Thanks.