Is this a bug? How do I get the tag of the collided-with-object, which also has a character controller attached?
function OnControllerColliderHit (hit : ControllerColliderHit) { // something has collided with the player!
if (controller.collisionFlags CollisionFlags.Sides) {
Debug.Log("bumped into"+hit.gameObject.tag);
This does not give the tag of the collided with object if it has a character controller attached.
The collision is happening (my player object dies when colliding with enemies that also have a character controller attached) but I cannot get the tag.
It seems possible that because my player is also touching the floor at the same time, the correct tag of the collided with object that caused the collision is not being preserved?
Help appreciated.