News › Forums › RAIN › General Discussion and Troubleshooting › AI moving through walls only with sensor
This topic contains 11 replies, has 3 voices, and was last updated by
vinceirwin 1 year, 3 months ago.
-
AuthorPosts
-
November 22, 2022 at 7:59 pm #5589
i have a problem with moving through walls (i guess that navmesh problem or AI ignore navmesh at this time).
the problem is occur only when visual sensor is active and somehow the AI see’s me through walls and walk
through walls to follow me, but the navmesh is fine im sure, because with way points everything works perfect!
with way points im telling him to walk the same positions as im walking when im the player.Thanks for any help
Danny.
November 23, 2022 at 10:54 am #5591i just made video to show you the problem
maybe its will helpNovember 23, 2022 at 11:14 am #5592i just found out that the problem is something with animations and mecanim.
the animations “force” him to walk through wallsNovember 23, 2022 at 2:49 pm #5593Are you using a Unity CharacterController?
November 23, 2022 at 3:46 pm #5599no, just capsule collider..
and in AI motion im using “mecanim motor”
in animation im using “mecanim animator”
im doing something worng?November 23, 2022 at 6:50 pm #5611i found out that if i uncheck “is kinematic” in rigidbody then the AI cant move through walls, however the problem is
that he’s trying to walk through and he stuck on the wall with walking animation, that means that
he still see the player through the wall and trying to follow him, and this is against navmesh.please any ideas?
November 25, 2022 at 5:24 pm #5623`Usually that happens when the AI is not actually on the NavMesh. I’m guessing the Body transform is hovering somewhere above the mesh. We’re planning some changes in our next update to help resolve that issue, but for now you probably just need to move your AI down onto the Mesh (either by lowering it directly, or by parenting it to an object that is on the mesh as explained in the basic rigging tutorial.)
November 25, 2022 at 8:03 pm #5629Thanks for you’r answer
I did almost everything thousand times but still the same problem occur..
I just know that this is mecanim + rain problem, because when im using in motion “basic animator” the problem is gone
and everything works just perfect.I hope that in the next update its will be fine, Thanks for everything!
November 26, 2022 at 1:14 am #5634Is that a project you can share? I’d like to take a closer look.
November 26, 2022 at 9:38 am #5638Sure, i see that there is no private messages in this forum, can you please give me your email ?
Thanks again!
November 26, 2022 at 10:37 pm #5654prime at rival theory dot com
July 3, 2022 at 7:00 am #38424See their instructional video guide how to fix the problem, some of your question may be available in the FAQ page.
Cheers.
Vince of http://www.debbieirwin.com/ -
AuthorPosts
You must be logged in to reply to this topic.