Search Unity

Should I use NavMesh Agents or Rigid bodies?

Discussion in 'Navigation' started by RedMattis, Apr 22, 2015.

?

Rigidbody or Navmesh Agent solution?

  1. NavMesh Agent

    0 vote(s)
    0.0%
  2. Rigid body

    0 vote(s)
    0.0%
  3. Other

    100.0%
Multiple votes are allowed.
  1. RedMattis

    RedMattis

    Joined:
    Apr 18, 2015
    Posts:
    16
    I'm writing a 3rd person action game with somewhat dynamic terrain, and I'm looking for some insight into the NavMesh agent issues. The players uses rigid bodies (which works nicely).

    Ideally what I'd like to do is have a "brain" script which controls characters with the ability to swap out a player brain for an AI brain and vice versa.

    For that reason I figured I'd like to have the AI just send instructions to its character instead of the seemingly RTS-like behavior of the NavMesh agent controller, which as far as I've understood it doesn't work with rigid-bodies.

    Has anyone tried something similar? Something I should watch out for here? Is it possible to get "Navmesh.CalculatePath" to work with off-link paths? How about Area masks?
     
  2. RedMattis

    RedMattis

    Joined:
    Apr 18, 2015
    Posts:
    16