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

# Wheel Collider Configure Vehicle Substeps

[Physics 3D](../../index.md) / [Collider](../index.md) / [Wheel Collider](index.md) / **Wheel Collider Configure Vehicle Substeps**

## Description

Executes the Configure Vehicle Substeps method on the Wheel Collider component

## Parameters

| Name | Description |
| :--- | :---------- |
| Speed Threshold |  |
| Steps Below Threshold |  |
| Steps Above Threshold |  |

## 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 Configure Vehicle Substeps")]
    [Category("Physics 3D/Collider/Wheel Collider/Configure Vehicle Substeps")]
    [Description("Executes the Configure Vehicle Substeps method on the Wheel Collider component")]
    
    [Image(typeof(IconWheel), ColorTheme.Type.Lime)]
    [Keywords("Physics, 3D")]
    
    [Parameter("Speed Threshold")]
    [Parameter("Steps Below Threshold")]
    [Parameter("Steps Above Threshold")]
    
    [Serializable]
    public class GenInstructionWheelCollider_ConfigureVehicleSubsteps_3 : Instruction
    {
        [SerializeField] private GetGameObject m_WheelCollider = new GetGameObject(
            new GenTypeGameObject_WheelCollider()
        );
        
        [SerializeField] private GetNumber m_SpeedThreshold = new GetNumber();
        
        [SerializeField] private GetInteger m_StepsBelowThreshold = new GetInteger();
        
        [SerializeField] private GetInteger m_StepsAboveThreshold = new GetInteger();
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Configure Vehicle Substeps");
            return $"{this.m_WheelCollider} {method} ({this.m_SpeedThreshold}, {this.m_StepsBelowThreshold}, {this.m_StepsAboveThreshold})";
        }
        
        protected override Awaitable Run(Args args)
        {
            WheelCollider component = this.m_WheelCollider.Get<WheelCollider>(args);
            if (component == null) return Done;
            
            component.ConfigureVehicleSubsteps(
                (float) this.m_SpeedThreshold.Get(args),
                (int) this.m_StepsBelowThreshold.Get(args),
                (int) this.m_StepsAboveThreshold.Get(args)
            );
            
            return Done;
        }
    }
}


```

