|
Post by kajamaz on Jan 1, 2017 4:11:50 GMT
When I place a companion AI on my floor, they instantly fall over and die. Why? I wanna know? Thanks. EDIT: After playing around, now he's just floating. How do i fix it? Thanks!
------
Invector Edit*
Cause > If the character has a Capsule Collider higher then 2, the raycast will not find the ground and he will keep floating.
|
|
|
Post by Chronicman on Jan 1, 2017 5:39:01 GMT
Your sphere collider is to big most likely.
|
|
|
Post by kajamaz on Jan 1, 2017 6:01:21 GMT
Your sphere collider is to big most likely. I've made it smaller and same issue :/
|
|
|
Post by shadex on Jan 1, 2017 6:31:46 GMT
Check your Navmesh You most likely forgot to bake it. Else check the demo scene and see if it happens there. If not its something in your setup in your scene
|
|
|
Post by Invector on Jan 1, 2017 14:27:52 GMT
Make sure your capsule collider is with the appropriate size and it's touching the ground exactly with the character feets. Also make sure your Ground Layer is check to Default
|
|
|
Post by kajamaz on Jan 2, 2017 2:35:30 GMT
Make sure your capsule collider is with the appropriate size and it's touching the ground exactly with the character feets. Also make sure your Ground Layer is check to Default I am missing those capsule colliders on the feet.
|
|
|
Post by jrackley on Jan 2, 2017 8:36:23 GMT
The capsule colliders on the feet are from the vFootstepTrigger. Also just to add to above posts, since there is no mention of your capsule collider size, make sure that the height is less than 2 that is what solved the same issue for me in the past, plus what has already been stated above.
|
|
|
Post by kajamaz on Jan 2, 2017 15:13:42 GMT
The capsule colliders on the feet are from the vFootstepTrigger. Also just to add to above posts, since there is no mention of your capsule collider size, make sure that the height is less than 2 that is what solved the same issue for me in the past, plus what has already been stated above. I can't locate vFootstepTrigger, where is it located?
|
|
|
Post by Invector on Jan 2, 2017 15:36:58 GMT
The sphere colliders of the FootStep are automatically created when you add a FootStep component, but they have nothing to do with your issue... the AI should work just fine with or without the footstep
|
|
|
Post by kajamaz on Jan 2, 2017 20:43:48 GMT
The sphere colliders of the FootStep are automatically created when you add a FootStep component, but they have nothing to do with your issue... the AI should work just fine with or without the footstep I'm still trying to figure out this issue. I followed your steps on your youtube video, no luck.
|
|
|
Post by Invector on Jan 2, 2017 21:13:21 GMT
Try record a video to us, maybe we can see something
|
|
|
Post by dreadlord on Jan 2, 2017 21:34:23 GMT
I also had this problem with ~ 2 out of 5 models.
I solved this for me by scaling down the model; create the AI and scale the prefab back up. Lets say creating the AI with a model with scale 1 does not work, at a scale of ,6 it's working.
|
|
|
Post by Chronicman on Jan 2, 2017 21:46:26 GMT
How are you guys scaling your models ? If its via the transform this is incorrect and may screw with some stuff. Instead try scaling via the fbx model scale factor. If you have some prefabs already this may cause them to look funny simply remake from the fbx model again.
|
|
|
Post by Invector on Jan 3, 2017 12:26:05 GMT
How are you guys scaling your models ? If its via the transform this is incorrect and may screw with some stuff. Instead try scaling via the fbx model scale factor. If you have some prefabs already this may cause them to look funny simply remake from the fbx model again. Yep, that's the correct approach to scale a model
|
|
|
Post by Invector on Jan 3, 2017 12:51:42 GMT
Just try out several free models from the asset store and got no issues, but when I change the scale factor of one from 1 to 1.5, the 'floating' issue happened, it's something about the Capsule Collider Height, try to keep at ~2, 2.1... hit play and tweek this value until you get a good result
|
|