How to detect avatar is on the ground?

Ok, I’ve settled with this

When I walked off the car my algorithm determined that she was off the ground and automatically enabled flight mode (in reality one could easily step off the car, but I had to make some sacrifices). Then I manually flew (PG-UP and PG-DOWN keys) over the building and when I got close to the roof it automatically turned off flight mode, then when I walked off it turned on flight mode. That’s good enough for now.

I’m only use one raycast for this.

3 Likes