PhysxVehicleBrakesAPI#
Up to two braking systems of a vehicle, applied on the vehicle prim as PhysxVehicleBrakesAPI:brakes0 and PhysxVehicleBrakesAPI:brakes1; brakes0 is commanded by physxVehicleController:brake0 and brakes1 by brake1. The walkers parse each recognised instance, and the runtime looks up the API and its two instances in the vehicle prim’s usd-schemas to attach the parsed systems to the vehicle.
Applies to:
XformableRequires on the same prim:
PhysxVehicleAPIMulti-apply: applied as
PhysxVehicleBrakesAPI:<instance>;<inst>in a column name is the instance. Instances:brakes0,brakes1.Read 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 |
mass*length^2/s^2 |
0.0 |
resolved USD value (authored, else raw fallback) |
none: the braking system is rejected diverges |
The braking system is rejected with the error that maxBrakeTorque must be defined, and the vehicle is not created. A present value must lie in [0, FLT_MAX), otherwise the same happens. |
|
int32 array |
none |
not written |
Every wheel of the vehicle receives the brake torque with multiplier 1. A negative entry rejects the braking system; an index not below the wheel count, or more entries than wheels, makes the vehicle invalid. Either way the vehicle is not created. |
||
|
float32 array |
none |
not written |
Multiplier 1 for every connected wheel. When present it must have as many entries as wheels and none may be negative, otherwise the braking system is rejected and the vehicle is not created. |
Interactions#
PhysxVehicleAPI: Only the braking systems on the vehicle prim itself are used. If the API is listed but neither brakes0 nor brakes1 yields a braking system, or an applied instance was rejected, the vehicle is not created. A vehicle with braking systems needs a drive.PhysxVehicleControllerAPI: brake0 commands brakes0 and brake1 commands brakes1. Without this API the vehicle uses the deprecated brakes setup driven by physxVehicleController:brake and handbrake.
Notes#
The ovstage and USD walkers both honour only the instance names brakes0 and brakes1 and ignore any other instance silently.
All three columns are change-tracked for both instances: the runtime applies new values for brakes0 and brakes1 while simulating.
PhysxVehicleNonlinearCommandResponseAPI:brakes0 and :brakes1 can add a nonlinear response to a braking system; that component’s columns are not described yet.