Jumping over objects/walls

Hello.
I want to make jumping over object system like than in drug dealer simulator, gta, watch dogs,… I know this is complex question, but i think i can manage something by myself, so here are some points I need help with:

  1. How to make raycast that will show how high is the wall?
  2. How to make sure player is facing wall when the animation starts?
  3. How to make sure the player gets behind the wall after animation ends?
  4. how to make this work even with wider objects?

I know i’ll need a lot of animations for this, and probably just set every animation based on which object is player trying to jump over
Thanks.

Author the height into a script on the wall you can read with one raycast.

Google.

What does this mean? What if the wall is too short? Again, author in “hiding spots” and make the player go to them.

Same as above.

It sounds like you’ve pre-chosen a bunch of solutions and / or methods to do various complex things and now you’re wondering how to do those things.

This isn’t generally how software development is done.

A great way to answer complex multi-layered questions like this is to get started on the smallest part of it.

Imphenzia: How Did I Learn To Make Games:

Two steps to tutorials and / or example code:

  1. do them perfectly, to the letter (zero typos, including punctuation and capitalization)
  2. stop and understand each step to understand what is going on.

If you go past anything that you don’t understand, then you’re just mimicking what you saw without actually learning, essentially wasting your own time. It’s only two steps. Don’t skip either step.