|
Post by deidrereay on Jan 22, 2020 21:21:29 GMT
Using Ai civilian and setting up dialogue with dialogue system for unity and everything is ok. Then move on to setting up generic action (press E to start conversation with AI) on the AI and as soon as that script is attached They fall through the floor. ANY idea what the heck is happening with that??
|
|
|
Post by superdev on Jan 23, 2020 6:25:04 GMT
Maybe it is disabling your collision when you initiate the action. Check your "Trigger generic action" component, under "Trigger" tab, check if "disable collision" is checked, if it is then uncheck it.
|
|
|
Post by Invector on Jan 23, 2020 16:57:55 GMT
The option to disable collision is probably checked
|
|
|
Post by deidrereay on Jan 23, 2020 17:02:29 GMT
The option to disable collision is probably checked It is not checked.. Does the navmesh need to be baked for them to not fall through?
|
|
|
Post by deidrereay on Jan 23, 2020 17:06:37 GMT
So in the two pictures here you can see falling through or not falling. And it is basically (look in inspector) having the generic action on and or off.
|
|
|
Post by Invector on Jan 23, 2020 17:06:49 GMT
The option to disable collision is probably checked It is not checked.. Does the navmesh need to be baked for them to not fall through? Nope, it's a physics driven character... check if your collision 'isTrigger' is enabled when he falls, if it is there is probably something making it true
|
|
|
Post by Invector on Jan 23, 2020 17:08:19 GMT
Try adding the Trigger as a child of the Controller and not the Controller it self
|
|
|
Post by deidrereay on Jan 23, 2020 17:15:50 GMT
Looking at the capsule collider when pressing play (Before it is not checked as trigger) It gets trigger active and i see the Material tab go from none physics to slippery as the AI falls through
|
|
|
Post by deidrereay on Jan 23, 2020 17:19:18 GMT
Looking at the capsule collider when pressing play (Before it is not checked as trigger) It gets trigger active and i see the Material tab go from none physics to slippery as the AI falls through
I guess it goes slippery max friction the slippery again under the materials physics
|
|
|
Post by deidrereay on Jan 23, 2020 17:19:58 GMT
Try adding the Trigger as a child of the Controller and not the Controller it self Not sure what you mean trigger as a child of the controller?
|
|
|
Post by Invector on Jan 23, 2020 17:23:46 GMT
You have added the Trigger GenericAction directly into the Controller which is not the ideal because it requires a collider and it will use the capsule collider, instead create an empty gameobject inside your character and add a custom collider and the trigger generic action
|
|
|
Post by deidrereay on Jan 23, 2020 17:47:16 GMT
You have added the Trigger GenericAction directly into the Controller which is not the ideal because it requires a collider and it will use the capsule collider, instead create an empty gameobject inside your character and add a custom collider and the trigger generic action You are a genious thank you as always it seems to have worked plcing empty game object and moving trigger generic action over to that.
|
|