100% Grounded, 100% of the Time, that's my goal. i want all my characters flat on the ground, all the time, NPCs and player group characters, in and out of battle, in life and in death, in heels or with flat feet, and in any situation where i haven't actually asked them to jump up and wave their arms in the air like they just don't care
so, that's the goal. for a number of reasons i don't think it would ever be 100% attainable, still, after a heap of experimentation i'm quite close now, except for one particular circumstance, which i'll come to in a moment
first, how the characters are currently configured:
NPCs use the NavMesh for their MoveAI. it gives the most natural path-finding. they're not forever bashing into the scenery, but it's at the expense of a certain amount of sinking into the landscape under some environmental conditions. however, because most of the NPCs in my game are either static (where it's irrelevant, because i've manually plonked them flat on the ground), or they're moving at some distance from the player, i can live with that
but i can't live with it for the player group characters, who have to move a lot closer to the player character, and where any sinkage is quite distracting. so, they're all set for their MoveAI to use Ork's in-built path-finding. they get lost quite often, but they move flat against the ground, and they always catch up the player to join in battles, so that's ok
so far so good. i turn off the NPC's NavMeshAgent in battles, and do some extra position adjustments for dead characters (to compensate for what prefab each character is currently using, and some other factors), and everything's dandy, except (and there's always an except):
if one of the player characters dies in battle, then once you come out of the battle, there they are, floating up in the air like they're a balloon on a piece of string or something. (that doesn't happen if i use NavMesh AI for them, but like i've said, that's not ideal for normal movement)
now, if i then revive them, they drop back down to earth and move around normally, so, you'd think i'd be able to do something like that (without the reviving them part obviously) to force dead characters to exit the battle on the ground, but i can't seem to get anything to work
i've set up an event that gets executed every time a battle ends, and i've tried to do a Search Combatants to return all the dead ones, but however i set it up it always returns zero, and even if i could get it to work i'm not really sure what i'd do after that
so, as always, any help or suggestions welcome