Navigation - ladders

Hi everyone,

I am currently using the Adventure Creator asset for creating a point and click adventure game with Unity Pro. I face the following problem (and actually I am starting to feel quite stupid that I can’t solve it): I can’t create a ladder!

I tried to google the answer but couldn’t really find anything specific on the topic, which I found quite surprising. I have already found the offMeshLinks but that is not what I want; I have tried the Adventure Creator’s built in meshCollider navigation too, but couldn’t get a ladder to work with it. Simply I want the character to be able to navigate through different NavMesh “levels” using the vertical ladder.

I am open to any solution that could work as I am quite lost.

Thanks in advance!
Tibberceleb

Heeeelp please :slight_smile:

why?

Because the characters just “jump” off the higher ground and they can’t go back up… Am I missing something trivial?

Also, I don’t want the character to “jump” off the higher NavMesh to the lower NavMesh. I just want a ladder-like implementation. Is there a way to make offMeshLink bidirectional and completely vertical?

links are directional, but there wouldn’t be anything to stop there being two links, one there and one back.

I’m spitballing a little, but you could add a trigger to the ladder, when the navagent hits the trigger it’s navagent move is disabled and the agent is moved up/down the ladder by some other means (they’re “in the pipe” they can only go up or down so they don’t need the full navigation functionality) when they arrive they get set back to navagent movement.

essentially the link exists to allow the navagent to know there is a path there, how they make the jump is then handled when they get there

One way might be to…

  • use the navmesh agent to navigate to the base of the ladder.
  • wait for an extra input from the user/enter a collider
  • disable the navmesh agent, enable the climbing animation
  • the animation only plays while the user is engaging in some way
  • idle frame would be holding on to the ladder with both hands
  • move the player up a spline or have a gameobject denoting the bottom and top of the ladder and move between
  • at the top, have a third point somewhere on the roof/whatever which the player tweens to (animation optional)
  • enable the navmesh agent

Would love to hear more thoughts on this. Code it one step at a time and tweak the behaviours. It’s not that daunting a prospect : ]

The same logic could be used by an NPC to chase after a player. i.e if they’re above the NPC, proceed to clmb and, if below, drop down on top of them etc…

This is an alternative to offmesh links and would probably afford you more control.

1 Like

If someone would sell this he will be rich, people are still suffering (including me) from the fact that AI NPC cannot climb while using unity’s navmesh. Can someone save the world and make a solution? This is your chance, you might have made it for your game or someone but here you can guarantee to sell it ! because its in high demand!
Seriously where are the developers wasting their time into and miss this opportunity?? Do it now before you regret it!

Please don’t necro-post. If you have a new question, make a new post. It’s FREE!!

There are already PLENTY of climbing solutions on the asset store. Go give them your money so they will be rich.

9824586--1412319--Screen Shot 2024-05-09 at 7.19.02 AM.png