Okay this is an odd one…
…I have two characters (not including the player of which behaves as expected) who are rather simple. They both have Animator, and a Character Controller. Only ONE of the characters has additional scripts…the Apex Pathfinding asset…otherwise there are no other scripts and neither have a RigidBody.
The first thing that surprised me is that the characters appear to be using Gravity, as they fall down to the ground. Fine no biggie, I just honestly didn’t recall that Character Controller used the built-in physics, and thought I needed either a RigidBody or manage my “physics” in script (which I’m doing for the Player character)…
…so here’s the real issue. After no particular amount of time (long or short), the character that is pathing around the game world will, for no definable reason on my end, fall through the game world as if the collider beneath it just disappeared. Here’s the kicker thought…the OTHER character, the one that has no other scripts other than the aforementioned Animator and Character Controller ALSO falls at that exact moment…never before, never after the first character falls…right at the exact moment. These two characters have absolutely nothing to do with each other and their prefabs are completely unique. When this phenomenon occurs they don’t even have to be anywhere near each other, yet it happens every single time.
- I at first thought it was Apex Path, but again, only one character is using it…the other is just standing there with no other scripts other than the two…
- Both of their Animator scripts are using Root Motion which I tried disabling. Additionally I tried changing their update modes from Normal to Animate Physics
- The world geometry is using Mesh Colliders; I fear that one solution might be to use primitive colliders (box/sphere/capsule), but for terrain that could be a bit of work to make it feel natural.
Any idea whatsoever why the pathing character would just appear to stop using collision, and why that would simultaneously make another character that has nothing to do with the first ALSO fall?
Is there a way I can manage my own physics while using the Character Collider?
Is there any way I can intercept whatever is going on to check for collisions/ground before the character falls?
Is this just an odd bug? I’ve never seen this before and my player character is using a Character Controller, a ton of complex scripts including my own managed internal gravity and colliding with the very same colliders the NPC’s are, yet the Player Character never falls through the world.
Thanks for reading and any help anyone can offer
-Steven
EDIT…the vitals!:
Unity Pro/iOS Pro 4.6 beta 20 (but this occurred in 4.5.5f1)
Macbook Pro 15 (2014) 16 gigs, 750m, i7
OSX 10.9.5
Xcode 6.1 (6A1052d)