PhysxVehicleControllerAPI#
Driver inputs (throttle, brakes, steer, target gear) of a vehicle that has a drive. The runtime checks that the vehicle prim lists it and reads its columns once, when the vehicle is created; PhysxVehicleTankControllerAPI adds thrust inputs on top.
Applies to:
XformableRequires on the same prim:
PhysxVehicleAPIRead only when listed in
usd-schemas.No builder:
ovphysx.populationandPopulation.hppdo 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 |
|---|---|---|---|---|---|---|
|
float32 |
none |
0.0 |
resolved USD value (authored, else raw fallback) |
0.0 |
0: no throttle. A present value outside [0, 1] logs an error and the vehicle is not created. |
|
float32 |
none |
0.0 |
resolved USD value (authored, else raw fallback) |
0.0 |
0: braking system brakes0 released. A present value outside [0, 1] logs an error and the vehicle is not created. |
|
float32 |
none |
0.0 |
resolved USD value (authored, else raw fallback) |
0.0 |
0: braking system brakes1 released. A present value outside [0, 1] logs an error and the vehicle is not created. |
|
float32 |
none |
0.0 |
resolved USD value (authored, else raw fallback) |
0.0 |
0. Deprecated and read only when authored (every present ovstage column counts as authored): a nonzero value logs a deprecation warning, and a value outside [0, 1] logs an error and the vehicle is not created. |
|
float32 |
none |
0.0 |
resolved USD value (authored, else raw fallback) |
0.0 |
0. Deprecated and read only when authored (every present ovstage column counts as authored): a nonzero value logs a deprecation warning, and a value outside [0, 1] logs an error and the vehicle is not created. |
|
float32 |
none |
0.0 |
resolved USD value (authored, else raw fallback) |
0.0 |
0: no steer. A present value outside [-1, 1] logs an error and the vehicle is not created. |
|
float32 |
none |
0.0 |
resolved USD value (authored, else raw fallback) |
0.0 |
0. Deprecated and read only when authored (every present ovstage column counts as authored): a nonzero value logs a deprecation warning, and a value outside [0, 1] logs an error and the vehicle is not created. |
|
float32 |
none |
0.0 |
resolved USD value (authored, else raw fallback) |
0.0 |
0. Deprecated and read only when authored (every present ovstage column counts as authored): a nonzero value logs a deprecation warning, and a value outside [0, 1] logs an error and the vehicle is not created. |
|
int32 |
none |
255 |
resolved USD value (authored, else raw fallback) |
255 |
255: automatic forward gear shifting. A present value other than 255 must lie in [-1, 30] (reverse, neutral, forward gears), otherwise an error is logged and the vehicle is not created. |
Interactions#
PhysxVehicleAPI: Read only on a prim that lists PhysxVehicleAPI, after the vehicle passed its other validation. The vehicle must have a drive (physxVehicle:drive, or a drive API on the vehicle prim); otherwise an error is logged and the vehicle is not created.PhysxVehicleWheelControllerAPI: Mutually exclusive: when a wheel attachment of the vehicle lists PhysxVehicleWheelControllerAPI, an error is logged and the vehicle is not created.PhysxVehicleTankControllerAPI: When that API is listed too, these columns are read on the tank controller path, which adds physxVehicleTankController:thrust0 and thrust1.
Notes#
Every column is change-tracked: the runtime applies a new value while simulating; an out-of-range value then logs an error and is ignored instead of invalidating the vehicle.
On reset the runtime writes the initial controller values back through the data-write sink; an attach without a sink skips that.