Identify face with normal "up"

Hello,

I am trying to implement a clibing-up script, so that the player can climb on large objects in front of him. For this I would like to identify, if the player is in front of an object, which has a face with normal up - so basically the upper face.

I googled now for hours, but did not find an easy solution for this.
Somebody an idea how to do this? Does unity store somewhere the direction of an normal?

Thank you

Huxi.

Here is an idea: use nav mesh for that - it generates walkable meshes, pointing up, by definition.

Generate navmesh data (separate from one that ai would use) that meets all of your climbing system criteria and NavMesh.SamplePosition() that. It’s precomputed so you can see climbing data visualized without any additional coding.

Hello @andrew-lukasik ,

that is actually a grate idea. I am reading through the documentation about the Nav-Mesh and it seams to be the ultimate solution.

Thanks for your input!

Huxi