RavEngine
Loading...
Searching...
No Matches
physx::vehicle2::PxVehicleTankDriveDifferentialStateComponent Class Referenceabstract

Compute the per wheel drive torque split of a tank drive differential. More...

#include <PxVehicleDrivetrainComponents.h>

Inheritance diagram for physx::vehicle2::PxVehicleTankDriveDifferentialStateComponent:
[legend]
Collaboration diagram for physx::vehicle2::PxVehicleTankDriveDifferentialStateComponent:
[legend]

Public Member Functions

virtual void getDataForTankDriveDifferentialStateComponent (const PxVehicleAxleDescription *&axleDescription, const PxVehicleTankDriveTransmissionCommandState *&transmissionCommands, PxVehicleArrayData< const PxVehicleWheelParams > &wheelParams, const PxVehicleTankDriveDifferentialParams *&differentialParams, PxVehicleDifferentialState *&differentialState, PxVehicleWheelConstraintGroupState *&constraintGroupState)=0
 Provide vehicle data items for this component.
 
virtual bool update (const PxReal dt, const PxVehicleSimulationContext &context)
 Update function for a vehicle component.
 

Detailed Description

Compute the per wheel drive torque split of a tank drive differential.

See also
PxVehicleDifferentialStateUpdate

Member Function Documentation

◆ getDataForTankDriveDifferentialStateComponent()

virtual void physx::vehicle2::PxVehicleTankDriveDifferentialStateComponent::getDataForTankDriveDifferentialStateComponent ( const PxVehicleAxleDescription *&  axleDescription,
const PxVehicleTankDriveTransmissionCommandState *&  transmissionCommands,
PxVehicleArrayData< const PxVehicleWheelParams > &  wheelParams,
const PxVehicleTankDriveDifferentialParams *&  differentialParams,
PxVehicleDifferentialState *&  differentialState,
PxVehicleWheelConstraintGroupState *&  constraintGroupState 
)
pure virtual

Provide vehicle data items for this component.

Parameters
[out]axleDescriptionidentifies the wheels on each axle.
[out]transmissionCommandsspecifies the values of the thrust controllers that divert torque to the tank tracks.
[out]wheelParamsis an array describing the radius of each wheel.
[out]differentialParamsdescribes the operation of the tank differential by specifying the default torque split between all wheels connected to the differential and by specifying the wheels coupled to each tank track.
[out]differentialStatestores the instantaneous torque split between all wheels arising from the difference between the thrust controllers.
[out]constraintGroupStatestores the groups of wheels that are connected by sharing a tank track.

Implemented in snippetvehicle2::EngineDriveVehicle.

◆ update()

virtual bool physx::vehicle2::PxVehicleTankDriveDifferentialStateComponent::update ( const PxReal  dt,
const PxVehicleSimulationContext &  context 
)
inlinevirtual

Update function for a vehicle component.

Parameters
[in]dtThe timestep size to use for the update step.
[in]contextVehicle simulation context holding global data or data that usually applies to a large group of vehicles.
Returns
True if subsequent components in a sequence should get updated, false if the sequence should be aborted.
See also
PxVehicleComponentSequence

Implements physx::vehicle2::PxVehicleComponent.


The documentation for this class was generated from the following file: