When my AI character dies, I’d like to remove the CharacterController, or at least disable it or it’s collider. CharacterController.enabled doesn’t exist, and I don’t have access to the collider that the CharacterController creates. Currently, my AI class requires the CharacterController, so I can’t Destroy it. (But other posts seem to say this causes an error if you do it anyway).
Right now it’s a problem because the collider is still blocking movement in the world, a giant invisible capsule where a dead orc’s body is. But I’d like to replace the capsule collider with a mesh collider after death, so clicking on the corpse is more accurate.
You could always just create the controller. It is nothing but a raycast downward, a linecast to where you want to be, and then another raycast downard at whatever that point is. You could get all dandy and use a spherecastall to see if you could really fit in the space.