Changing height of AI agent to work in Navigation Mesh
I have an AI agent (derived from ACharacter) that works perfectly when i use MoveToLocation if its capsule height is 88.0 and radius is 39.0. My issue is when I double the size to 196 height and 78 radius (so that I can double the scale of Skeletal Mesh), the MoveToLocation no longer works. I tried to fiddle with the Recast Navmesh settings, but it didn't really help. Can some help me with this?
asked Jul 18 '14 at 07:00 AM in Using UE4
I've tried this before and the only 'gotcha' I found was that my entities ended up getting spawned slightly under the NavMesh once i increased their bounds. Perhaps this is your problem?
answered Jul 21 '14 at 09:36 AM
Tom Sarkanen STAFF
Hey, have you tried creating a second Navigation agent in "Project Settings > Navigation System > Agents", and set the second agents radius/height to your new character size. This should auto-create (when navigation rebuilds/ or close/reopen project) a new Navmesh bounds volume in your level that fits the new agent dimensions.
I think (the last I heard), the navigation system then automatically picks the best fit navmesh bounds volume for your character based on the characters size (you might have to ask someone else here for more details on the sepcifics tho (what size it uses, collision capsule, movement component details etc..)...
answered Jun 30 '16 at 01:58 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here