Class VehicleDebug
Handles vehicles debug drawing.
Inherited Members
Namespace: Unity.Vehicles
Assembly: com.unity.vehicles.dll
Syntax
[ExecuteAlways]
public class VehicleDebug : MonoBehaviour
Fields
AeroForceColor
Color of the aero force gizmos.
Declaration
[Tooltip("Color of the aero force gizmos.")]
public Color AeroForceColor
Field Value
Type | Description |
---|---|
Color |
AeroForceScale
Scale of the aero force gizmos.
Declaration
[Tooltip("Scale of the aero force gizmos.")]
public float AeroForceScale
Field Value
Type | Description |
---|---|
float |
DrawAeroForces
Should the aero gizmos be drawn?
Declaration
[Header("Aero")]
[Tooltip("Should the aero gizmos be drawn?")]
public bool DrawAeroForces
Field Value
Type | Description |
---|---|
bool |
DrawFriction
Should the friction gizmos be drawn?
Declaration
[Header("Friction")]
[Tooltip("Should the friction gizmos be drawn?")]
public bool DrawFriction
Field Value
Type | Description |
---|---|
bool |
DrawSuspensionForces
Should the suspension force gizmos be drawn?
Declaration
[Header("Suspension")]
[Tooltip("Should the suspension force gizmos be drawn?")]
public bool DrawSuspensionForces
Field Value
Type | Description |
---|---|
bool |
DrawWheelAxis
Should the wheel axis/directions be drawn?
Declaration
[Header("Wheel Axis")]
[Tooltip("Should the wheel axis/directions be drawn?")]
public bool DrawWheelAxis
Field Value
Type | Description |
---|---|
bool |
DrawWheelCasts
Should the wheel casting results be drawn?
Declaration
[Header("Wheel Hits")]
[Tooltip("Should the wheel casting results be drawn?")]
public bool DrawWheelCasts
Field Value
Type | Description |
---|---|
bool |
DrawWheels
Should the wheel gizmos be drawn?
Declaration
[Header("Wheels")]
[Tooltip("Should the wheel gizmos be drawn?")]
public bool DrawWheels
Field Value
Type | Description |
---|---|
bool |
FrictionForceColor
Color of the friction force gizmos.
Declaration
[Tooltip("Color of the friction force gizmos.")]
public Color FrictionForceColor
Field Value
Type | Description |
---|---|
Color |
FrictionForceScale
Scale of the friction force gizmos.
Declaration
[Tooltip("Scale of the friction force gizmos.")]
public float FrictionForceScale
Field Value
Type | Description |
---|---|
float |
FrictionSlipColor
Color of the friction slip gizmos.
Declaration
[Tooltip("Color of the friction slip gizmos.")]
public Color FrictionSlipColor
Field Value
Type | Description |
---|---|
Color |
FrictionSlipScale
Scale of the friction slip gizmos.
Declaration
[Tooltip("Scale of the friction slip gizmos.")]
public float FrictionSlipScale
Field Value
Type | Description |
---|---|
float |
FrictionSpeedColor
Color of the friction speed gizmos.
Declaration
[Tooltip("Color of the friction speed gizmos.")]
public Color FrictionSpeedColor
Field Value
Type | Description |
---|---|
Color |
FrictionSpeedScale
Scale of the friction speed gizmos.
Declaration
[Tooltip("Scale of the friction speed gizmos.")]
public float FrictionSpeedScale
Field Value
Type | Description |
---|---|
float |
SuspensionForceColor
Color of the suspension force gizmos.
Declaration
[Tooltip("Color of the suspension force gizmos.")]
public Color SuspensionForceColor
Field Value
Type | Description |
---|---|
Color |
SuspensionForceScale
Scale of the suspension force gizmos.
Declaration
[Tooltip("Scale of the suspension force gizmos.")]
public float SuspensionForceScale
Field Value
Type | Description |
---|---|
float |
WheelAxisLength
Length of the wheel axis/directions.
Declaration
[Tooltip("Length of the wheel axis/directions.")]
public float WheelAxisLength
Field Value
Type | Description |
---|---|
float |
WheelCastColor
Color of the wheel cast positions and normals.
Declaration
[Tooltip("Color of the wheel cast positions and normals.")]
public Color WheelCastColor
Field Value
Type | Description |
---|---|
Color |
WheelHitsLength
Length of the wheel casts.
Declaration
[Tooltip("Length of the wheel casts.")]
public float WheelHitsLength
Field Value
Type | Description |
---|---|
float |
Methods
SetObservedWorld(World)
Sets the debug world
Declaration
public void SetObservedWorld(World world)
Parameters
Type | Name | Description |
---|---|---|
World | world | ECS world to debug |