---
tags:
    - "Physics, 3D"
---

# Wheel Collider Is Grounded

[Physics 3D](../../index.md) / [Collider](../index.md) / [Wheel Collider](index.md) / **Wheel Collider Is Grounded**

## Description

Compares the Is Grounded property of Wheel Collider component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| Wheel Collider |  |

## Code

```cs
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Title("Wheel Collider Is Grounded")]
    [Category("Physics 3D/Collider/Wheel Collider/Is Grounded")]
    [Description("Compares the Is Grounded property of Wheel Collider component to another value")]

    [Image(typeof(IconWheel), ColorTheme.Type.Lime)]
    [Keywords("Physics, 3D")]

    [Parameter("Wheel Collider")]

    [Serializable]
    public class GenConditionBool_WheelCollider_CheckIsGrounded : Condition
    {
        [SerializeField] private GetGameObject m_WheelCollider = new GetGameObject(
            new GenTypeGameObject_WheelCollider()
        );

        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Is Grounded");
            return $"{this.m_WheelCollider} {member}";
        }

        protected override bool Run(Args args)
        {
            WheelCollider component = this.m_WheelCollider.Get<WheelCollider>(args);
            if (component == null) return false;

            return component.isGrounded;
        }
    }
}
```

