usdrt::PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI
Defined in usdrt/scenegraph/usd/physxSchema/physxVehicleMultiWheelDifferentialAPI.h
Functions
usdrt::PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI::Apply: Applies this single-apply API schema to the given
prim
. This information is stored by adding "PhysxVehicleMultiWheelDifferentialAPI" to the token-valued, listOp metadata apiSchemas on the prim.usdrt::PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI::CreateAverageWheelSpeedRatiosAttr: See GetAverageWheelSpeedRatiosAttr() , and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute's default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.usdrt::PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI::CreateTorqueRatiosAttr: See GetTorqueRatiosAttr() , and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute's default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.usdrt::PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI::CreateWheelsAttr: See GetWheelsAttr() , and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute's default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.usdrt::PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI::GetAverageWheelSpeedRatiosAttr: Defines how the speeds of the driven wheels get weighted when computing the average wheel speed at the clutch (for computing clutch slip). The provided ratios must be in range [0, 1] and under normal circumstances sum up to 1. If the attribute is defined, then the length of the array needs to match the length of the "wheels" array. If the attribute is not defined, the wheel speeds of all driven wheels will get weighted equally.
usdrt::DestructionSchemaDestructibleBaseAPI::GetPath: Return the SdfPath to this schema object's held prim.
usdrt::DestructionSchemaDestructibleBaseAPI::GetPrim: Return this schema object's held prim.
usdrt::PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI::GetTorqueRatiosAttr: Defines how the drive torque should get distributed among the wheels specified in the "wheels" attribute. The provided ratios must be in range [-1, 1] and under normal circumstances the absolute values should sum up to 1. If the attribute is defined, then the length of the array needs to match the length of the "wheels" array. If the attribute is not defined, the torque will get split equally among all driven wheels.
usdrt::PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI::GetWheelsAttr: List of indices, referencing the wheels that are driven (receiving torque from the engine). The indices refer to the attribute "index" of PhysxVehicleWheelAttachmentAPI.
usdrt::PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI::PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI: Construct a PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI on the prim held by
schemaObj
. Should be preferred over PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI (schemaObj.GetPrim()), as it preserves SchemaBase state.usdrt::PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI::PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI: Construct a PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI on UsdPrim
prim
. Equivalent to PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI::Get(prim.GetStage(), prim.GetPath()) for a validprim
, but will not immediately throw an error for an invalidprim
.usdrt::DestructionSchemaDestructibleBaseAPI::_GetInstanceName: Returns the instance name of the API schema object belonging to a multiple-apply API schema.
usdrt::PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI::operator bool: Boolean operator.
usdrt::PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI::~PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI: Destructor.
Variables
usdrt::PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI::schemaType: Compile time constant representing what kind of schema this class is.
-
class PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI : public usdrt::UsdAPISchemaBase
Describes which wheels of a vehicle are driven as well as the distribution of the drive torque among those wheels. Has to be applied to a prim with PhysxVehicleAPI applied. Can only be used for vehicles that have a drive (see PhysxVehicleDriveBasicAPI or PhysxVehicleDriveStandardAPI).
Public Functions
-
inline explicit PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI(const UsdPrim &prim = UsdPrim())
Construct a PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI on UsdPrim
prim
. Equivalent to PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI::Get(prim.GetStage(), prim.GetPath()) for a validprim
, but will not immediately throw an error for an invalidprim
.
-
inline explicit PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI(const UsdSchemaBase &schemaObj)
Construct a PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI on the prim held by
schemaObj
. Should be preferred over PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI(schemaObj.GetPrim()), as it preserves SchemaBase state.
-
inline virtual ~PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI()
Destructor.
-
inline operator bool() const
Boolean operator.
- Returns
Return true if the contained prim is has this api schema applied using
HasAPI
, and false otherwise.
-
inline UsdAttribute GetWheelsAttr() const
List of indices, referencing the wheels that are driven (receiving torque from the engine). The indices refer to the attribute “index” of PhysxVehicleWheelAttachmentAPI.
Declaration
int[] physxVehicleMultiWheelDifferential:wheels
C++ Type
VtArray<int>
Usd Type
SdfValueTypeNames->IntArray
-
inline UsdAttribute CreateWheelsAttr() const
See GetWheelsAttr(), and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute’s default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.
-
inline UsdAttribute GetTorqueRatiosAttr() const
Defines how the drive torque should get distributed among the wheels specified in the “wheels” attribute. The provided ratios must be in range [-1, 1] and under normal circumstances the absolute values should sum up to 1. If the attribute is defined, then the length of the array needs to match the length of the “wheels” array. If the attribute is not defined, the torque will get split equally among all driven wheels.
Declaration
float[] physxVehicleMultiWheelDifferential:torqueRatios
C++ Type
VtArray<float>
Usd Type
SdfValueTypeNames->FloatArray
-
inline UsdAttribute CreateTorqueRatiosAttr() const
See GetTorqueRatiosAttr(), and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute’s default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.
-
inline UsdAttribute GetAverageWheelSpeedRatiosAttr() const
Defines how the speeds of the driven wheels get weighted when computing the average wheel speed at the clutch (for computing clutch slip). The provided ratios must be in range [0, 1] and under normal circumstances sum up to 1. If the attribute is defined, then the length of the array needs to match the length of the “wheels” array. If the attribute is not defined, the wheel speeds of all driven wheels will get weighted equally.
Note: if a vehicle is using a PhysxVehicleDriveBasicAPI drive, then this attribute should not be used.
Declaration
float[] physxVehicleMultiWheelDifferential:averageWheelSpeedRatios
C++ Type
VtArray<float>
Usd Type
SdfValueTypeNames->FloatArray
-
inline UsdAttribute CreateAverageWheelSpeedRatiosAttr() const
See GetAverageWheelSpeedRatiosAttr(), and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute’s default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.
Public Static Functions
-
static inline PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI Apply(const UsdPrim &prim)
Applies this single-apply API schema to the given
prim
. This information is stored by adding “PhysxVehicleMultiWheelDifferentialAPI” to the token-valued, listOp metadata apiSchemas on the prim.See also
UsdPrim::GetAppliedSchemas()
See also
UsdPrim::HasAPI()
See also
UsdPrim::ApplyAPI()
See also
UsdPrim::RemoveAPI()
- Returns
A valid PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI object is returned upon success. An invalid (or empty) PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI object is returned upon failure. See UsdPrim::ApplyAPI() for conditions resulting in failure.
Public Static Attributes
-
static const UsdSchemaType schemaType = UsdSchemaType::SingleApplyAPI
Compile time constant representing what kind of schema this class is.
See also
UsdSchemaType
-
inline explicit PhysxSchemaPhysxVehicleMultiWheelDifferentialAPI(const UsdPrim &prim = UsdPrim())