Is there any way I can have a gameobject detect if another collider has collided with it but not have them bounce off each other and simply phase through each other?
I’d like to have my player be able to go through an object but be detected every time it happens.
function OnTriggerEnter()
{
if (gameObject.CompareTag == "object")
{
Debug.Log ("Made contact")
}
}
This should be enough basics to allow the object to pass through any colliders, but mention to the Debug that it has encountered something