Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

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

    55.6%
  2. Rigid body

    44.4%
  3. Other

    11.1%
Multiple votes are allowed.
  1. RedMattis

    RedMattis

    Joined:
    Apr 18, 2015
    Posts:
    33
    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:
    33