playMaker

Author Topic: Rootmotion AI gets stuck on edges/long walls  (Read 1383 times)

TrueSoSense

  • Playmaker Newbie
  • *
  • Posts: 17
Rootmotion AI gets stuck on edges/long walls
« on: January 29, 2022, 03:19:40 PM »
Hello, i want my navmesh agent to move freely (so he can fall without using off mesh links, jump using addforce and stuff...). Basically NavmeshAgent update rotation and position are set to false.
A character that is using rootmotion is following the next position of the Navmesh agent... But it gets stuck sometimes.
Like this:
Can anyone help ?

Twood

  • Junior Playmaker
  • **
  • Posts: 80
Re: Rootmotion AI gets stuck on edges/long walls
« Reply #1 on: January 30, 2022, 04:52:15 PM »
Those kind of issues can be complicated and but basically it sounds like you'll need more feedback from the environment for the character to know what to do.

You might need to add "sensors" to your character, for example by doing raycasts that find out what objects/layers/areas are in front or below, then change their behavior to react to certain things.

TrueSoSense

  • Playmaker Newbie
  • *
  • Posts: 17
Re: Rootmotion AI gets stuck on edges/long walls
« Reply #2 on: January 31, 2022, 01:31:20 PM »
Ok I will try to add sensors.

TrueSoSense

  • Playmaker Newbie
  • *
  • Posts: 17
Re: Rootmotion AI gets stuck on edges/long walls
« Reply #3 on: January 31, 2022, 02:03:25 PM »
Adding a smooth look at fixed the issue but now the character turns unrealisticly.
« Last Edit: January 31, 2022, 02:05:02 PM by TrueSoSense »