|
Post by affordablecat on Jul 23, 2019 13:54:39 GMT
Hi All, Just wondering if anyone knows how to fix this floating enemy issue I am having? My Level has a few stairs in it and every time an enemy comes off the stairs they kind of float in the air above the ground and then correct eventually. I have tried playing with the base offset. Seems like it would have a simple solution just not sure what it is? I have included some screen shots. Thanks,
|
|
|
Post by shadex on Aug 1, 2019 7:47:19 GMT
Hi All, Just wondering if anyone knows how to fix this floating enemy issue I am having? My Level has a few stairs in it and every time an enemy comes off the stairs they kind of float in the air above the ground and then correct eventually. I have tried playing with the base offset. Seems like it would have a simple solution just not sure what it is? I have included some screen shots. Thanks,
Like you thought, It's most likely Step Offset under vAIControlMelee. You can set it in play mode. Some gray lines will appear near the feet. Step offset start is ground level, Step offset end should be the height of a step. Step Smooth makes it preform better on either stairs or ramps. Higher numbers make it easier to climb stairs, lower reduce jitters on ramps.
It helps on some animations to make sure on the animation import you have Root Transform Position Y checked and set to feet. I would check any movement animations to make sure it set.
I would also try adding 999 mass to the AI's Rigidbody, as it's a good duct tape fix to enemy's floating around. Not sure what your numbers are but here are my numbers for my AI for reference.
Step Offset End 0.45
Step Offset Start 0.05 Step Smooth 4
|
|
|
Post by Invector on Aug 2, 2019 18:42:48 GMT
We recommend step smooth set to 2 instead of 4, way less bumping
|
|