Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Navmesh and Moving Ground/Platform

Discussion in 'Navigation' started by RobertOne, Feb 10, 2015.

  1. RobertOne

    RobertOne

    Joined:
    Feb 5, 2014
    Posts:
    258
    Hey Folks!

    I have a (maybe) simple question:

    i want to add a simple lift/elevator to my game. so you would have two "floors" in the game and you need to step on a platform which lifts you op to go from area 1 to area 2 which already have some baked navmeshes.

    thats the idea. but i am stumbeling across a problem:
    how do you bake a navmesh into a moving platform? has anybody of you did this before? i searched the whole internet but couldn't find anyone who tried it - or maybe I am using the wrong keywords
     
  2. Ap0C552

    Ap0C552

    Joined:
    Feb 7, 2015
    Posts:
    43
    So does the player/agent just step on the elevator, go up, and get off? Could you not just take explicit control of the character with a script and walk him on the elevator, and walk him off. Then walk him off onto the second floor/navmesh layer?

    So when character is issued an order to go on elevator, it pathfind to a point right outside the elevator, then from that point it is manually animated onto and off the elevator.