PhysxVehicleWheelControllerAPI#

Direct per-wheel drive torque, brake torque and steer angle for a vehicle without a drive, applied on a wheel attachment (a prim with PhysxVehicleWheelAttachmentAPI below the vehicle prim). The runtime checks each wheel attachment for it and reads its columns once, when the vehicle is created.

  • Applies to: Xformable

  • Read only when listed in usd-schemas.

  • No builder: ovphysx.population and Population.hpp do not write this component; the consumer reads it when another population writes it.

Columns#

Raw fallback is the USD schema value. Producer writes is what ovstage population puts in the column for a USD stage. Parser default applies on the consumer when the column is absent, in stage units. diverges means writing the raw fallback literally parses differently from omitting the column (the parser default): USD population may well publish that very value for an unauthored attribute, so the marker is about the column being present, not about its value.

Column

Type

Units

Raw fallback

Producer writes

Parser default

If absent

physxVehicleWheelController:driveTorque

float32

mass*length^2/s^2

0.0

resolved USD value (authored, else raw fallback)

0.0

0: no drive torque. Any value is accepted.

physxVehicleWheelController:brakeTorque

float32

mass*length^2/s^2

0.0

resolved USD value (authored, else raw fallback)

0.0

0: no brake torque. A present value outside [0, FLT_MAX) logs an error and the vehicle is not created.

physxVehicleWheelController:steerAngle

float32

rad

0.0

resolved USD value (authored, else raw fallback)

0.0

0: the wheel is not steered. Any value is accepted.

Interactions#

  • PhysxVehicleAPI: Read only for the wheel attachments of a vehicle that has no drive. On a vehicle with a drive (physxVehicle:drive or a drive API on the vehicle prim) the API is an illegal configuration: an error is logged and the vehicle is not created.

  • PhysxVehicleControllerAPI: Mutually exclusive with PhysxVehicleControllerAPI on the vehicle prim; having both logs an error and the vehicle is not created.

Notes#

  • The prim must also carry PhysxVehicleWheelAttachmentAPI, which this contract does not describe yet; only wheel attachments the vehicle parse accepted are checked for this API.

  • All three columns are change-tracked: the runtime applies a new value while simulating; a negative brakeTorque then logs an error and is ignored.