Choose your operating system:
Windows
macOS
Linux
Vehicle debug commands help physics developers visualize what is happening within the simulation.
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. |
p.Vehicle.SetPersistDebugLinesTime |
Sets debug line persistence time for force visualization. |
Disable Features and Forces
Command |
Description |
---|---|
p.Vehicle.BatchQueries |
Enables batching of suspension raycasts. |
p.Vehicle.DisableTorqueControl |
Enables direct torque control. |
p.Vehicle.DisableStabilizeControl |
Enables position stabilization control. |
p.Vehicle.DisableAerodynamics |
Enables aerodynamic force drag/downforce. |
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. |