|
Post by Invector on Jul 2, 2017 15:39:05 GMT
You will not have this issue about gravity vs agent with the next AI, because the nav mesh agent will not interfere with the rigibody anymore. One tip for huge enemies would be to turn off collision between Player and the main capsule collider of the Enemy, and enable damage per bodypart, this way you could pass between his legs and apply damage into this ragdoll colliders which would be pretty cool
|
|
|
Post by Strider on Jul 2, 2017 17:34:22 GMT
You will not have this issue about gravity vs agent with the next AI, because the nav mesh agent will not interfere with the rigibody anymore. One tip for huge enemies would be to turn off collision between Player and the main capsule collider of the Enemy, and enable damage per bodypart, this way you could pass between his legs and apply damage into this ragdoll colliders which would be pretty cool sounds awesome! how do i enable damage per body parts? thanks! :D
|
|
|
Post by Invector on Jul 2, 2017 18:05:58 GMT
You will not have this issue about gravity vs agent with the next AI, because the nav mesh agent will not interfere with the rigibody anymore. One tip for huge enemies would be to turn off collision between Player and the main capsule collider of the Enemy, and enable damage per bodypart, this way you could pass between his legs and apply damage into this ragdoll colliders which would be pretty cool sounds awesome! how do i enable damage per body parts? thanks! :D I'm assuming this is not a commum enemy, so you could use the Layer " Boss" for this enemy. So, first you need to disable collision between Player/Boss by going into Edit > Project Settings > Physics.Then add a Ragdoll into your Boss and make sure the collider size is fitting nicely into your model, and set the Layer from the Hips to all childrens to " BodyPart" and go into the Ragdoll component and uncheck " Disable Colliders", this will keep the colliders active allowing collision. Even though both the main capsule collider and the bodyparts colliders are using the tag Enemy which is the tag you're applying damage to, you will only actually collide and apply damage into the layer BodyPart and it will ignore the main capsule collider. Give a try, I think this could work
|
|
|
Post by Strider on Jul 2, 2017 19:15:22 GMT
sounds awesome! how do i enable damage per body parts? thanks! :D I'm assuming this is not a commum enemy, so you could use the Layer " Boss" for this enemy. So, first you need to disable collision between Player/Boss by going into Edit > Project Settings > Physics.Then add a Ragdoll into your Boss and make sure the collider size is fitting nicely into your model, and set the Layer from the Hips to all childrens to " BodyPart" and go into the Ragdoll component and uncheck " Disable Colliders", this will keep the colliders active allowing collision. Even though both the main capsule collider and the bodyparts colliders are using the tag Enemy which is the tag you're applying damage to, you will only actually collide and apply damage into the layer BodyPart and it will ignore the main capsule collider. Give a try, I think this could work Hhmmm.... i have no Boss layer, only tag... and no "BodyPart" layer or tag. Do i need to have the shooter template for this? or can i just create them? "BodyPart" is a Layer or a Tag? Thanks!
|
|
|
Post by Strider on Jul 2, 2017 19:29:02 GMT
Alright! created the layers and did everything, it works really fine!
|
|
|
Post by Strider on Jul 2, 2017 21:12:59 GMT
here's a video fo the gameplay, before addind the changes, was working fine.
|
|
|
Post by Strider on Sept 10, 2017 1:57:49 GMT
i have a little question. I can hit the colliders of my enemy, but i don't cause any damage. Do i need to add something?
Thanks!
|
|