|
Post by claudiomg on Nov 15, 2017 18:32:25 GMT
I want to know how I can create something to NOT allow the player and the AI to walk areas with water?
The navmesh can be used to do that?
|
|
kano
Junior vMember
Posts: 40
|
Post by kano on Nov 15, 2017 19:03:30 GMT
Why not just put large collider around water? Navmesh will not affect player.
|
|
|
Post by claudiomg on Nov 15, 2017 22:15:48 GMT
kano, your idea is simple, but is excellent, I add some static cubes with mesh renderers disabled with box colliders. The static invisible cube will be used to create the navmesh, this way the AI will not try to go the water. Neither the player will be able to walk on water. It's not perfect, but I will keep this until I find a better solution. Thank you so much.
|
|
|
Post by sickscore on Nov 16, 2017 9:35:51 GMT
Best solution would be to create a collider with the form of your water/lake/ocean in your 3D software. This way you don‘t have 100 different colliders in your scene. Don‘t forget to assign the „StopMove“ layer to your collider, otherwise your character will run on spot when he‘s blocked by the collider.
|
|
|
Post by tharindu on Nov 16, 2017 11:11:02 GMT
kano , your idea is simple, but is excellent, I add some static cubes with mesh renderers disabled with box colliders. The static invisible cube will be used to create the navmesh, this way the AI will not try to go the water. Neither the player will be able to walk on water. It's not perfect, but I will keep this until I find a better solution. Thank you so much. why don't you try adding a mesh collider, make it a convex one and then add the stopMove layer to the water plane ? I haven't tried this though.
|
|
|
Post by claudiomg on Nov 16, 2017 11:46:58 GMT
Best solution would be to create a collider with the form of your water/lake/ocean in your 3D software. This way you don‘t have 100 different colliders in your scene. Don‘t forget to assign the „StopMove“ layer to your collider, otherwise your character will run on spot when he‘s blocked by the collider. sickscore This is the problem, I add 10 colliders in one of my game levels just to avoid the water. tharindu I will try to use the Mega Shapes asset to create objects that will fill better the space filled with water and use a mesh collider on them. I forgot about the stopMove layer, thanks for remember me.
|
|
|
Post by Invector on Nov 16, 2017 12:40:51 GMT
We use Probuilder to create colliders for level, it's really simple and fast and you can use the Free version to do that ;)
|
|
|
Post by claudiomg on Nov 17, 2017 11:06:43 GMT
We use Probuilder to create colliders for level, it's really simple and fast and you can use the Free version to do that ;) Thanks for the tip. I will begin to use it now.
|
|