This page is not available in the language you have chosen. It will be displayed in English by default. If you would like to view it in a different language, you can try selecting another language.
Vehicle debug commands help physics developers visualize what is happening within the simulation.
p.Vehicle debug commands display in the editor command console
Generally, the following commands either disable physics features or disable debug lines in the scene.
Generic Commands
Generic commands apply to all vehicle types and include visualizing forces and locations, and disabling features and forces.
Visualize Forces and Locations
| Command | Description |
|---|---|
p.Vehicle.ShowCOM |
Enables center of mass visualization. |
p.Vehicle.ShowModelOrigin |
Enables origin visualization. |
p.Vehicle.ShowAerofoilForces |
Enables aerofoil visualization. |
p.Vehicle.ShowAerofoilSurface |
Enables surface visualization. |
p.Vehicle.ShowAllForces |
Enables force visualization. |
p.Vehicle.SetForceDebugScaling |
Sets scaling for force visualization. |
Disable Features and Forces
| Command | Description |
|---|---|
p.Vehicle.BatchQueries |
Enables batching of suspension raycasts. |
p.Vehicle.DisableTorqueControl |
Disables direct torque control. |
p.Vehicle.DisableStabilizeControl |
Disables position stabilization control. |
p.Vehicle.DisableAerodynamics |
Disables aerodynamic force drag/downforce. |
p.Vehicle.DisableSuspensionForces |
Disables chassis suspension forces. |
p.Vehicle.DisableFrictionForces |
Disables wheel friction forces. |
p.Vehicle.DisableRollbarForces |
Disables rollbar forces. |
Wheeled Vehicle Commands
| Command | Description |
|---|---|
p.Vehicle.ShowWheelCollisionNormal |
Enables wheel collision normal visualization. |
p.Vehicle.ShowSuspensionRaycasts |
Enables suspension raycast visualization. |
p.Vehicle.ShowSuspensionLimits |
Enables suspension limits visualization. |
p.Vehicle.ShowWheelForces |
Enables wheel forces visualization. |
p.Vehicle.ShowSuspensionForces |
Enables suspension forces visualization. |
p.Vehicle.ThrottleOverride |
Force in an override throttle value between 0 and 1, to drive vehicle movement without a controller. |
p.Vehicle.SteeringOverride |
Force in a steering value between -1 and 1, to drive vehicle movement without a controller. |