C
C
Coffee_yechic2020-09-11 20:54:42
C++ / C#
Coffee_yechic, 2020-09-11 20:54:42

How to write a 2d ground check using raycasts on a unity?

The character in the game randomly jumps to double height. According to most, this is due to an incorrect check of the land. They advised to use raycasts. I was looking for a lesson with them for a long time, but I didn’t find it ... Please tell me how to write a ground check using raycasts and a jump function using it. If you know tutorials on this topic, then I ask you to provide them, because the problem hangs for quite a long time and continues to demotivate you to play the game...

If you need a code, video, or anything else, then I will provide everything.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Coffee_yechic, 2020-09-11
@Coffee_yechic

I found that video. Maybe someone will need: https://www.youtube.com/watch?v=c3iEl5AwUF8

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question