# How to check if vehicle is in the air/on the ground? (Is Moving On Ground doesn't work)

**URL:** <https://forums.unrealengine.com/t/how-to-check-if-vehicle-is-in-the-air-on-the-ground-is-moving-on-ground-doesnt-work/244327>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [August 7, 2021, 7:52am UTC](https://forums.unrealengine.com/t/how-to-check-if-vehicle-is-in-the-air-on-the-ground-is-moving-on-ground-doesnt-work/244327 "2021-08-07T07:52:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_65969482](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_65969482](https://forums.unrealengine.com/u/anonymous_user_65969482)\
**Post date:** [August 7, 2021, 7:52am UTC](https://forums.unrealengine.com/t/how-to-check-if-vehicle-is-in-the-air-on-the-ground-is-moving-on-ground-doesnt-work/244327/1 "2021-08-07T07:52:21Z")

</div>

I am making a rocket league-like game and I have made a jumping mechanic and I want to either… sense when its in the air, so it doesn’t jump when in the air. OR. Sense when it’s on the ground so it only jumps when its on the ground. I tried using a ‘Is Moving On Ground’ Node along with a Branch, But it always came out ‘False’ even if driving. So if there is any fixes for this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/2/d268a31994b0423922b22e43f7f1132b2d07d75f.png)  
or if there is any other way to do this.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_65969482](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_65969482](https://forums.unrealengine.com/u/anonymous_user_65969482)\
**Post date:** [August 7, 2021, 9:20pm UTC](https://forums.unrealengine.com/t/how-to-check-if-vehicle-is-in-the-air-on-the-ground-is-moving-on-ground-doesnt-work/244327/2 "2021-08-07T21:20:24Z")

</div>

any ideas?

---

<div class="post-metadata">

**Author:** ![bumbumgoesnuts](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bumbumgoesnuts](https://forums.unrealengine.com/u/bumbumgoesnuts)\
**Post date:** [August 7, 2021, 10:49pm UTC](https://forums.unrealengine.com/t/how-to-check-if-vehicle-is-in-the-air-on-the-ground-is-moving-on-ground-doesnt-work/244327/3 "2021-08-07T22:49:48Z")

</div>

Try using IsFalling node. If that doesn’t work u can also do it manually by using a line trace to the ground to check of the vehicle is higher than a certain distance.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_65969482](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_65969482](https://forums.unrealengine.com/u/anonymous_user_65969482)\
**Post date:** [August 8, 2021, 6:41am UTC](https://forums.unrealengine.com/t/how-to-check-if-vehicle-is-in-the-air-on-the-ground-is-moving-on-ground-doesnt-work/244327/4 "2021-08-08T06:41:27Z")

</div>

Any suggested tutorial videos for the line trace?

---

<div class="post-metadata">

**Author:** ![Syedhs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Syedhs](https://forums.unrealengine.com/u/Syedhs)\
**Post date:** [August 8, 2021, 8:53am UTC](https://forums.unrealengine.com/t/how-to-check-if-vehicle-is-in-the-air-on-the-ground-is-moving-on-ground-doesnt-work/244327/6 "2021-08-08T08:53:08Z")

</div>

Raycast to the ground… in ‘normal’ mode… raycast length to the closest object (which is the ground) should be more or less equal to the vehicle height (depends on the origin anyway)… the direction is also almost pointing downward - you cannot make it too rigid though.

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [August 10, 2021, 12:12am UTC](https://forums.unrealengine.com/t/how-to-check-if-vehicle-is-in-the-air-on-the-ground-is-moving-on-ground-doesnt-work/244327/7 "2021-08-10T00:12:37Z")

</div>

I had a similar situation recently, I needed to know if a player was in the air, and if in the air for a certain amount of time (aka is falling for a time) then allow the the player to press the same input key as jump and activate a parachute, but still normal jumping as usual.

> **[Parachute MACRO posted by BizaaroGrodd | blueprintUE | PasteBin For Unreal...](https://www.blueprintue.com/blueprint/oveov6ib/)**
>
> No description provided

You will notice at the beginning of this macro “exe 5” that is coming directly from an input action jump (not shown in the pic), that is fed to a branch, and the condition is an and boolean, the two connections of the and boolean are a “get player controller” and "was input key just pressed (spacebar in my case) , also a boolean variable (freefall), if you want to see how I set that variable look here. [Freefall MACRO posted by BizaaroGrodd | blueprintUE | PasteBin For Unreal Engine 4](https://www.blueprintue.com/blueprint/tpsvezzr/)

Whereas I was using spacebar as jump key, you should just be able to add a pin to that and boolean and add another is input key pressed down (face button down?) to suit your needs for however many jump inputs you need.

You can check out the thread here. [How to tell (in seconds) how long Is Falling is activated?](https://forums.unrealengine.com/t/how-to-tell-in-seconds-how-long-is-falling-is-activated/241361)

---

<div class="post-metadata">

**Author:** ![BJGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bjgames/32/879537_2.png) [@BJGames](https://forums.unrealengine.com/u/BJGames)\
**Post date:** [December 15, 2023, 7:16am UTC](https://forums.unrealengine.com/t/how-to-check-if-vehicle-is-in-the-air-on-the-ground-is-moving-on-ground-doesnt-work/244327/8 "2023-12-15T07:16:02Z")

</div>

Came across this problem myself, trying to deactivate tire dust kickup when vehicle is in the air. If you are using the Chaos Wheeled Vehicle component there is a node you can use off the component called “Get Wheel State”, this will ask for a wheel index (if 4 wheels from 0-3, not going to tell you which is which as different setups might be set differently but in your vehicle setup it will tell you FR, FL etc and its order).  
Then you pull off the struct return value and “Break Wheel Status”, here is a load of useful info regarding wheel status you may want, but the one that relates here is the first one “In Contact”. It’s a boolean value and works perfectly, I set a forloop of 0-3 getting the wheel index and then branched to set either active or not active based on that boolean.  
Hope this helps someone that comes across this!

---

<div class="post-metadata">

**Author:** ![PsychicParrot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/psychicparrot/32/947655_2.png) [@PsychicParrot](https://forums.unrealengine.com/u/PsychicParrot)\
**Post date:** [June 5, 2024, 1:21am UTC](https://forums.unrealengine.com/t/how-to-check-if-vehicle-is-in-the-air-on-the-ground-is-moving-on-ground-doesnt-work/244327/9 "2024-06-05T01:21:44Z")

</div>

I know this is an old thread, but I just wanted to say thanks for posting this. It’s exactly what I was looking for and it works great. Cheers!

---

<div class="post-metadata">

**Author:** ![ratikG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ratikG](https://forums.unrealengine.com/u/ratikG)\
**Post date:** [November 18, 2024, 3:59pm UTC](https://forums.unrealengine.com/t/how-to-check-if-vehicle-is-in-the-air-on-the-ground-is-moving-on-ground-doesnt-work/244327/10 "2024-11-18T15:59:43Z")

</div>

thanks guys , it worked. I used the wheel state/ in contact method 🙂

---

<div class="post-metadata">

**Author:** ![Antimorph](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Antimorph](https://forums.unrealengine.com/u/Antimorph)\
**Post date:** [February 18, 2025, 4:08am UTC](https://forums.unrealengine.com/t/how-to-check-if-vehicle-is-in-the-air-on-the-ground-is-moving-on-ground-doesnt-work/244327/11 "2025-02-18T04:08:20Z")

</div>

Old thread, yea, but this helped me today. So, big thank you @BJGames !!
