Search Unity

active rag dolls and NavMeshAgent's

Discussion in 'Navigation' started by EvilBob99, Feb 21, 2022.

  1. EvilBob99

    EvilBob99

    Joined:
    Dec 12, 2021
    Posts:
    83
    so I have an active rag doll system I took from GitHub which was made by a youtuber but im having no luck in figuring out a solution, origanly I was going to have an empty object that used its own NavMeshAgent agent and the active rag doll would try and follow it but I quickly ran into a problem if the NavMeshAgent goes behind it will lose track of it and also it looks awful so im wondering how can I apply a NavMeshAgent agent to the active rag doll itself because in its current state I just makes a beeline for its target
     
  2. r31o

    r31o

    Joined:
    Jul 29, 2021
    Posts:
    460
    Blend physics and navigation is not a good idea.
    The youtuber Dani had thet problem and made:
    -Enable the navmesh.
    -Get the next point to move.
    -Disable navmesh.
    -Move the character (I guess rigidbody.MovePosition)
     
  3. EvilBob99

    EvilBob99

    Joined:
    Dec 12, 2021
    Posts:
    83
    thx