RavEngine
Loading...
Searching...
No Matches
snippetvehicle2::EngineDriveVehicle Class Reference
Inheritance diagram for snippetvehicle2::EngineDriveVehicle:
[legend]
Collaboration diagram for snippetvehicle2::EngineDriveVehicle:
[legend]

Public Types

enum  Enum { eDIFFTYPE_FOURWHEELDRIVE , eDIFFTYPE_MULTIWHEELDRIVE , eDIFFTYPE_TANKDRIVE }
 

Public Member Functions

bool initialize (PxPhysics &physics, const PxCookingParams &params, PxMaterial &defaultMaterial, Enum differentialType, bool addPhysXBeginEndComponents=true)
 
virtual void destroy ()
 
virtual void initComponentSequence (bool addPhysXBeginEndComponents)
 
virtual void getDataForPhysXActorBeginComponent (const PxVehicleAxleDescription *&axleDescription, const PxVehicleCommandState *&commands, const PxVehicleEngineDriveTransmissionCommandState *&transmissionCommands, const PxVehicleGearboxParams *&gearParams, const PxVehicleGearboxState *&gearState, const PxVehicleEngineParams *&engineParams, PxVehiclePhysXActor *&physxActor, PxVehiclePhysXSteerState *&physxSteerState, PxVehiclePhysXConstraints *&physxConstraints, PxVehicleRigidBodyState *&rigidBodyState, PxVehicleArrayData< PxVehicleWheelRigidBody1dState > &wheelRigidBody1dStates, PxVehicleEngineState *&engineState)
 Provide vehicle data items for this component.
 
virtual void getDataForPhysXActorEndComponent (const PxVehicleAxleDescription *&axleDescription, const PxVehicleRigidBodyState *&rigidBodyState, PxVehicleArrayData< const PxVehicleWheelParams > &wheelParams, PxVehicleArrayData< const PxTransform > &wheelShapeLocalPoses, PxVehicleArrayData< const PxVehicleWheelRigidBody1dState > &wheelRigidBody1dStates, PxVehicleArrayData< const PxVehicleWheelLocalPose > &wheelLocalPoses, const PxVehicleGearboxState *&gearState, PxVehiclePhysXActor *&physxActor)
 Provide vehicle data items for this component.
 
virtual void getDataForEngineDriveCommandResponseComponent (const PxVehicleAxleDescription *&axleDescription, PxVehicleSizedArrayData< const PxVehicleBrakeCommandResponseParams > &brakeResponseParams, const PxVehicleSteerCommandResponseParams *&steerResponseParams, PxVehicleSizedArrayData< const PxVehicleAckermannParams > &ackermannParams, const PxVehicleGearboxParams *&gearboxParams, const PxVehicleClutchCommandResponseParams *&clutchResponseParams, const PxVehicleEngineParams *&engineParams, const PxVehicleRigidBodyState *&rigidBodyState, const PxVehicleEngineState *&engineState, const PxVehicleAutoboxParams *&autoboxParams, const PxVehicleCommandState *&commands, const PxVehicleEngineDriveTransmissionCommandState *&transmissionCommands, PxVehicleArrayData< PxReal > &brakeResponseStates, PxVehicleEngineDriveThrottleCommandResponseState *&throttleResponseState, PxVehicleArrayData< PxReal > &steerResponseStates, PxVehicleGearboxState *&gearboxResponseState, PxVehicleClutchCommandResponseState *&clutchResponseState, PxVehicleAutoboxState *&autoboxState)
 Provide vehicle data items for this component.
 
virtual void getDataForFourWheelDriveDifferentialStateComponent (const PxVehicleAxleDescription *&axleDescription, const PxVehicleFourWheelDriveDifferentialParams *&differentialParams, PxVehicleArrayData< const PxVehicleWheelRigidBody1dState > &wheelRigidbody1dStates, PxVehicleDifferentialState *&differentialState, PxVehicleWheelConstraintGroupState *&wheelConstraintGroups)
 
virtual void getDataForMultiWheelDriveDifferentialStateComponent (const PxVehicleAxleDescription *&axleDescription, const PxVehicleMultiWheelDriveDifferentialParams *&differentialParams, PxVehicleDifferentialState *&differentialState)
 
virtual void getDataForTankDriveDifferentialStateComponent (const PxVehicleAxleDescription *&axleDescription, const PxVehicleTankDriveTransmissionCommandState *&tankDriveTransmissionCommands, PxVehicleArrayData< const PxVehicleWheelParams > &wheelParams, const PxVehicleTankDriveDifferentialParams *&differentialParams, PxVehicleDifferentialState *&differentialState, PxVehicleWheelConstraintGroupState *&wheelConstraintGroups)
 Provide vehicle data items for this component.
 
virtual void getDataForEngineDriveActuationStateComponent (const PxVehicleAxleDescription *&axleDescription, const PxVehicleGearboxParams *&gearboxParams, PxVehicleArrayData< const PxReal > &brakeResponseStates, const PxVehicleEngineDriveThrottleCommandResponseState *&throttleResponseState, const PxVehicleGearboxState *&gearboxState, const PxVehicleDifferentialState *&differentialState, const PxVehicleClutchCommandResponseState *&clutchResponseState, PxVehicleArrayData< PxVehicleWheelActuationState > &actuationStates)
 
virtual void getDataForEngineDrivetrainComponent (const PxVehicleAxleDescription *&axleDescription, PxVehicleArrayData< const PxVehicleWheelParams > &wheelParams, const PxVehicleEngineParams *&engineParams, const PxVehicleClutchParams *&clutchParams, const PxVehicleGearboxParams *&gearboxParams, PxVehicleArrayData< const PxReal > &brakeResponseStates, PxVehicleArrayData< const PxVehicleWheelActuationState > &actuationStates, PxVehicleArrayData< const PxVehicleTireForce > &tireForces, const PxVehicleEngineDriveThrottleCommandResponseState *&throttleResponseState, const PxVehicleClutchCommandResponseState *&clutchResponseState, const PxVehicleDifferentialState *&differentialState, const PxVehicleWheelConstraintGroupState *&constraintGroupState, PxVehicleArrayData< PxVehicleWheelRigidBody1dState > &wheelRigidBody1dStates, PxVehicleEngineState *&engineState, PxVehicleGearboxState *&gearboxState, PxVehicleClutchSlipState *&clutchState)
 Provide vehicle data items for this component.
 
- Public Member Functions inherited from snippetvehicle2::PhysXActorVehicle
bool initialize (PxPhysics &physics, const PxCookingParams &params, PxMaterial &defaultMaterial)
 
void setUpActor (PxScene &scene, const PxTransform &pose, const char *vehicleName)
 
virtual void getDataForPhysXConstraintComponent (const PxVehicleAxleDescription *&axleDescription, const PxVehicleRigidBodyState *&rigidBodyState, PxVehicleArrayData< const PxVehicleSuspensionParams > &suspensionParams, PxVehicleArrayData< const PxVehiclePhysXSuspensionLimitConstraintParams > &suspensionLimitParams, PxVehicleArrayData< const PxVehicleSuspensionState > &suspensionStates, PxVehicleArrayData< const PxVehicleSuspensionComplianceState > &suspensionComplianceStates, PxVehicleArrayData< const PxVehicleRoadGeometryState > &wheelRoadGeomStates, PxVehicleArrayData< const PxVehicleTireDirectionState > &tireDirectionStates, PxVehicleArrayData< const PxVehicleTireStickyState > &tireStickyStates, PxVehiclePhysXConstraints *&constraints)
 
virtual void getDataForPhysXRoadGeometrySceneQueryComponent (const PxVehicleAxleDescription *&axleDescription, const PxVehiclePhysXRoadGeometryQueryParams *&roadGeomParams, PxVehicleArrayData< const PxReal > &steerResponseStates, const PxVehicleRigidBodyState *&rigidBodyState, PxVehicleArrayData< const PxVehicleWheelParams > &wheelParams, PxVehicleArrayData< const PxVehicleSuspensionParams > &suspensionParams, PxVehicleArrayData< const PxVehiclePhysXMaterialFrictionParams > &materialFrictionParams, PxVehicleArrayData< PxVehicleRoadGeometryState > &roadGeometryStates, PxVehicleArrayData< PxVehiclePhysXRoadGeometryQueryState > &physxRoadGeometryStates)
 Provide vehicle data items for this component.
 
- Public Member Functions inherited from snippetvehicle2::BaseVehicle
bool initialize ()
 
void step (const PxReal dt, const PxVehicleSimulationContext &context)
 
virtual void getDataForRigidBodyComponent (const PxVehicleAxleDescription *&axleDescription, const PxVehicleRigidBodyParams *&rigidBodyParams, PxVehicleArrayData< const PxVehicleSuspensionForce > &suspensionForces, PxVehicleArrayData< const PxVehicleTireForce > &tireForces, const PxVehicleAntiRollTorque *&antiRollTorque, PxVehicleRigidBodyState *&rigidBodyState)
 Retrieve pointers to the parameter and state data required to update the dynamic state of a rigid body.
 
virtual void getDataForSuspensionComponent (const PxVehicleAxleDescription *&axleDescription, const PxVehicleRigidBodyParams *&rigidBodyParams, const PxVehicleSuspensionStateCalculationParams *&suspensionStateCalculationParams, PxVehicleArrayData< const PxReal > &steerResponseStates, const PxVehicleRigidBodyState *&rigidBodyState, PxVehicleArrayData< const PxVehicleWheelParams > &wheelParams, PxVehicleArrayData< const PxVehicleSuspensionParams > &suspensionParams, PxVehicleArrayData< const PxVehicleSuspensionComplianceParams > &suspensionComplianceParams, PxVehicleArrayData< const PxVehicleSuspensionForceParams > &suspensionForceParams, PxVehicleSizedArrayData< const PxVehicleAntiRollForceParams > &antiRollForceParams, PxVehicleArrayData< const PxVehicleRoadGeometryState > &wheelRoadGeomStates, PxVehicleArrayData< PxVehicleSuspensionState > &suspensionStates, PxVehicleArrayData< PxVehicleSuspensionComplianceState > &suspensionComplianceStates, PxVehicleArrayData< PxVehicleSuspensionForce > &suspensionForces, PxVehicleAntiRollTorque *&antiRollTorque)
 Retrieve pointers to the parameter and state data required to compute the suspension state and the forces/torques that arise from the suspension state.
 
virtual void getDataForTireComponent (const PxVehicleAxleDescription *&axleDescription, PxVehicleArrayData< const PxReal > &steerResponseStates, const PxVehicleRigidBodyState *&rigidBodyState, PxVehicleArrayData< const PxVehicleWheelActuationState > &actuationStates, PxVehicleArrayData< const PxVehicleWheelParams > &wheelParams, PxVehicleArrayData< const PxVehicleSuspensionParams > &suspensionParams, PxVehicleArrayData< const PxVehicleTireForceParams > &tireForceParams, PxVehicleArrayData< const PxVehicleRoadGeometryState > &roadGeomStates, PxVehicleArrayData< const PxVehicleSuspensionState > &suspensionStates, PxVehicleArrayData< const PxVehicleSuspensionComplianceState > &suspensionComplianceStates, PxVehicleArrayData< const PxVehicleSuspensionForce > &suspensionForces, PxVehicleArrayData< const PxVehicleWheelRigidBody1dState > &wheelRigidBody1DStates, PxVehicleArrayData< PxVehicleTireGripState > &tireGripStates, PxVehicleArrayData< PxVehicleTireDirectionState > &tireDirectionStates, PxVehicleArrayData< PxVehicleTireSpeedState > &tireSpeedStates, PxVehicleArrayData< PxVehicleTireSlipState > &tireSlipStates, PxVehicleArrayData< PxVehicleTireCamberAngleState > &tireCamberAngleStates, PxVehicleArrayData< PxVehicleTireStickyState > &tireStickyStates, PxVehicleArrayData< PxVehicleTireForce > &tireForces)
 
virtual void getDataForWheelComponent (const PxVehicleAxleDescription *&axleDescription, PxVehicleArrayData< const PxReal > &steerResponseStates, PxVehicleArrayData< const PxVehicleWheelParams > &wheelParams, PxVehicleArrayData< const PxVehicleSuspensionParams > &suspensionParams, PxVehicleArrayData< const PxVehicleWheelActuationState > &actuationStates, PxVehicleArrayData< const PxVehicleSuspensionState > &suspensionStates, PxVehicleArrayData< const PxVehicleSuspensionComplianceState > &suspensionComplianceStates, PxVehicleArrayData< const PxVehicleTireSpeedState > &tireSpeedStates, PxVehicleArrayData< PxVehicleWheelRigidBody1dState > &wheelRigidBody1dStates, PxVehicleArrayData< PxVehicleWheelLocalPose > &wheelLocalPoses)
 
- Public Member Functions inherited from physx::vehicle2::PxVehicleRigidBodyComponent
virtual bool update (const PxReal dt, const PxVehicleSimulationContext &context)
 Update function for a vehicle component.
 
- Public Member Functions inherited from physx::vehicle2::PxVehicleSuspensionComponent
virtual bool update (const PxReal dt, const PxVehicleSimulationContext &context)
 Update the suspension state and suspension compliance state and use those updated states to compute suspension and anti-roll forces/torques to apply to the vehicle's rigid body.
 
- Public Member Functions inherited from physx::vehicle2::PxVehicleTireComponent
virtual bool update (const PxReal dt, const PxVehicleSimulationContext &context)
 Update function for a vehicle component.
 
- Public Member Functions inherited from physx::vehicle2::PxVehicleWheelComponent
virtual bool update (const PxReal dt, const PxVehicleSimulationContext &context)
 Update function for a vehicle component.
 
- Public Member Functions inherited from physx::vehicle2::PxVehiclePhysXActorBeginComponent
virtual bool update (const PxReal dt, const PxVehicleSimulationContext &context)
 Update function for a vehicle component.
 
- Public Member Functions inherited from physx::vehicle2::PxVehiclePhysXActorEndComponent
virtual bool update (const PxReal dt, const PxVehicleSimulationContext &context)
 Update function for a vehicle component.
 
- Public Member Functions inherited from physx::vehicle2::PxVehiclePhysXConstraintComponent
virtual bool update (const PxReal dt, const PxVehicleSimulationContext &context)
 Update function for a vehicle component.
 
- Public Member Functions inherited from physx::vehicle2::PxVehiclePhysXRoadGeometrySceneQueryComponent
virtual bool update (const PxReal dt, const PxVehicleSimulationContext &context)
 Update function for a vehicle component.
 
- Public Member Functions inherited from physx::vehicle2::PxVehicleEngineDriveCommandResponseComponent
virtual bool update (const PxReal dt, const PxVehicleSimulationContext &context)
 Update function for a vehicle component.
 
- Public Member Functions inherited from physx::vehicle2::PxVehicleFourWheelDriveDifferentialStateComponent
virtual bool update (const PxReal dt, const PxVehicleSimulationContext &context)
 Update function for a vehicle component.
 
- Public Member Functions inherited from physx::vehicle2::PxVehicleMultiWheelDriveDifferentialStateComponent
virtual bool update (const PxReal dt, const PxVehicleSimulationContext &context)
 Update function for a vehicle component.
 
- Public Member Functions inherited from physx::vehicle2::PxVehicleTankDriveDifferentialStateComponent
virtual bool update (const PxReal dt, const PxVehicleSimulationContext &context)
 Update function for a vehicle component.
 
- Public Member Functions inherited from physx::vehicle2::PxVehicleEngineDriveActuationStateComponent
virtual bool update (const PxReal dt, const PxVehicleSimulationContext &context)
 Update function for a vehicle component.
 
- Public Member Functions inherited from physx::vehicle2::PxVehicleEngineDrivetrainComponent
virtual bool update (const PxReal dt, const PxVehicleSimulationContext &context)
 Update function for a vehicle component.
 

Public Attributes

EngineDrivetrainParams mEngineDriveParams
 
EngineDrivetrainState mEngineDriveState
 
PxVehicleEngineDriveTransmissionCommandState mTransmissionCommandState
 
PxVehicleTankDriveTransmissionCommandState mTankDriveTransmissionCommandState
 
Enum mDifferentialType
 
- Public Attributes inherited from snippetvehicle2::PhysXActorVehicle
PhysXIntegrationParams mPhysXParams
 
PhysXIntegrationState mPhysXState
 
PxVehicleCommandState mCommandState
 
- Public Attributes inherited from snippetvehicle2::BaseVehicle
BaseVehicleParams mBaseParams
 
BaseVehicleState mBaseState
 
PxVehicleComponentSequence mComponentSequence
 
PxU8 mComponentSequenceSubstepGroupHandle
 

Member Function Documentation

◆ destroy()

void snippetvehicle2::EngineDriveVehicle::destroy ( )
virtual

◆ getDataForEngineDriveActuationStateComponent()

virtual void snippetvehicle2::EngineDriveVehicle::getDataForEngineDriveActuationStateComponent ( const PxVehicleAxleDescription *&  axleDescription,
const PxVehicleGearboxParams *&  gearboxParams,
PxVehicleArrayData< const PxReal > &  brakeResponseStates,
const PxVehicleEngineDriveThrottleCommandResponseState *&  throttleResponseState,
const PxVehicleGearboxState *&  gearboxState,
const PxVehicleDifferentialState *&  differentialState,
const PxVehicleClutchCommandResponseState *&  clutchResponseState,
PxVehicleArrayData< PxVehicleWheelActuationState > &  actuationStates 
)
inlinevirtual

◆ getDataForEngineDriveCommandResponseComponent()

virtual void snippetvehicle2::EngineDriveVehicle::getDataForEngineDriveCommandResponseComponent ( const PxVehicleAxleDescription *&  axleDescription,
PxVehicleSizedArrayData< const PxVehicleBrakeCommandResponseParams > &  brakeResponseParams,
const PxVehicleSteerCommandResponseParams *&  steerResponseParams,
PxVehicleSizedArrayData< const PxVehicleAckermannParams > &  ackermannParams,
const PxVehicleGearboxParams *&  gearboxParams,
const PxVehicleClutchCommandResponseParams *&  clutchResponseParams,
const PxVehicleEngineParams *&  engineParams,
const PxVehicleRigidBodyState *&  rigidBodyState,
const PxVehicleEngineState *&  engineState,
const PxVehicleAutoboxParams *&  autoboxParams,
const PxVehicleCommandState *&  commands,
const PxVehicleEngineDriveTransmissionCommandState *&  transmissionCommands,
PxVehicleArrayData< PxReal > &  brakeResponseStates,
PxVehicleEngineDriveThrottleCommandResponseState *&  throttleResponseState,
PxVehicleArrayData< PxReal > &  steerResponseStates,
PxVehicleGearboxState *&  gearboxResponseState,
PxVehicleClutchCommandResponseState *&  clutchResponseState,
PxVehicleAutoboxState *&  autoboxState 
)
inlinevirtual

Provide vehicle data items for this component.

Parameters
[out]axleDescriptionidentifies the wheels on each axle.
[out]brakeResponseParamsAn array of brake response parameters with a brake response for each brake command.
[out]steerResponseParamsThe steer response parameters.
[out]ackermannParamsThe parameters defining Ackermann steering. NULL if no Ackermann steering is desired.
[out]gearboxParamsThe gearbox parameters.
[out]clutchResponseParamsThe clutch response parameters.
[out]engineParamsThe engine parameters. Only needed if an autobox is provided (see autoboxParams), else it can be set to NULL.
[out]engineStateThe engine state. Only needed if an autobox is provided (see autoboxParams), else it can be set to NULL.
[out]autoboxParamsThe autobox parameters. If not NULL, the autobox will determine the target gear. Requires the parameters engineParams, engineState and autoboxState to be available. If no autobox is desired, NULL can be used in which case the aforementioned additional parameters can be set to NULL too.
[out]rigidBodyStateThe state of the vehicle's rigid body.
[out]commandsThe throttle, brake, steer etc. command states.
[out]transmissionCommandsThe clutch, target gear etc. command states. If an autobox is provided (see autoboxParams) and the target gear is set to PxVehicleEngineDriveTransmissionCommandState::eAUTOMATIC_GEAR, then the autobox will trigger gear shifts.
[out]brakeResponseStatesThe resulting brake response states given the command input and brake response parameters.
[out]throttleResponseStateThe resulting throttle response to the input throttle command.
[out]steerResponseStatesThe resulting steer response states given the command input, steer response and (optionally) Ackermann parameters.
[out]gearboxResponseStateThe resulting gearbox response state given the command input and gearbox parameters.
[out]clutchResponseStateThe resulting clutch state given the command input and clutch response parameters.
[out]autoboxStateThe resulting autobox state given the autobox/engine/gear params and engine state. Only needed if an autobox is provided (see autoboxParams), else it can be set to NULL.

Implements physx::vehicle2::PxVehicleEngineDriveCommandResponseComponent.

◆ getDataForEngineDrivetrainComponent()

virtual void snippetvehicle2::EngineDriveVehicle::getDataForEngineDrivetrainComponent ( const PxVehicleAxleDescription *&  axleDescription,
PxVehicleArrayData< const PxVehicleWheelParams > &  wheelParams,
const PxVehicleEngineParams *&  engineParams,
const PxVehicleClutchParams *&  clutchParams,
const PxVehicleGearboxParams *&  gearboxParams,
PxVehicleArrayData< const PxReal > &  brakeResponseStates,
PxVehicleArrayData< const PxVehicleWheelActuationState > &  actuationStates,
PxVehicleArrayData< const PxVehicleTireForce > &  tireForces,
const PxVehicleEngineDriveThrottleCommandResponseState *&  throttleResponseState,
const PxVehicleClutchCommandResponseState *&  clutchResponseState,
const PxVehicleDifferentialState *&  differentialState,
const PxVehicleWheelConstraintGroupState *&  constraintGroupState,
PxVehicleArrayData< PxVehicleWheelRigidBody1dState > &  wheelRigidBody1dStates,
PxVehicleEngineState *&  engineState,
PxVehicleGearboxState *&  gearboxState,
PxVehicleClutchSlipState *&  clutchState 
)
inlinevirtual

Provide vehicle data items for this component.

Parameters
[out]axleDescriptionidentifies the wheels on each axle.
[out]wheelParamsspecifies the radius of each wheel.
[out]engineParamsspecifies the engine's torque curve, idle revs and max revs.
[out]clutchParamsspecifies the maximum strength of the clutch.
[out]gearboxParamsspecifies the gear ratio of each gear.
[out]brakeResponseStatesstores the instantaneous brake brake torque to apply to each wheel.
[out]actuationStatesstores whether a brake and/or drive torque are to be applied to each wheel.
[out]tireForcesstores the lateral and longitudinal tire force that has developed on each tire.
[out]throttleResponseStatestores the response of the throttle to the input throttle command.
[out]clutchResponseStatestores the instantaneous clutch strength that arises from the input clutch command.
[out]differentialStatestores the instantaneous torque split between the wheels.
[out]constraintGroupStatestores the groups of wheels that are subject to constraints that require them to have the same angular or linear velocity.
[out]wheelRigidBody1dStatesstores the per wheel angular speed to be computed by the component.
[out]engineStatestores the engine rotation speed to be computed by the component.
[out]gearboxStatestores the state of the gearbox to be computed by the component.
[out]clutchStatestores the clutch slip to be computed by the component.
Note
If constraintGroupState is set to NULL it is assumed that there are no requirements for any wheels to have the same angular or linear velocity.

Implements physx::vehicle2::PxVehicleEngineDrivetrainComponent.

◆ getDataForFourWheelDriveDifferentialStateComponent()

virtual void snippetvehicle2::EngineDriveVehicle::getDataForFourWheelDriveDifferentialStateComponent ( const PxVehicleAxleDescription *&  axleDescription,
const PxVehicleFourWheelDriveDifferentialParams *&  differentialParams,
PxVehicleArrayData< const PxVehicleWheelRigidBody1dState > &  wheelRigidbody1dStates,
PxVehicleDifferentialState *&  differentialState,
PxVehicleWheelConstraintGroupState *&  wheelConstraintGroups 
)
inlinevirtual

◆ getDataForMultiWheelDriveDifferentialStateComponent()

virtual void snippetvehicle2::EngineDriveVehicle::getDataForMultiWheelDriveDifferentialStateComponent ( const PxVehicleAxleDescription *&  axleDescription,
const PxVehicleMultiWheelDriveDifferentialParams *&  differentialParams,
PxVehicleDifferentialState *&  differentialState 
)
inlinevirtual

◆ getDataForPhysXActorBeginComponent()

virtual void snippetvehicle2::EngineDriveVehicle::getDataForPhysXActorBeginComponent ( const PxVehicleAxleDescription *&  axleDescription,
const PxVehicleCommandState *&  commands,
const PxVehicleEngineDriveTransmissionCommandState *&  transmissionCommands,
const PxVehicleGearboxParams *&  gearParams,
const PxVehicleGearboxState *&  gearState,
const PxVehicleEngineParams *&  engineParams,
PxVehiclePhysXActor *&  physxActor,
PxVehiclePhysXSteerState *&  physxSteerState,
PxVehiclePhysXConstraints *&  physxConstraints,
PxVehicleRigidBodyState *&  rigidBodyState,
PxVehicleArrayData< PxVehicleWheelRigidBody1dState > &  wheelRigidBody1dStates,
PxVehicleEngineState *&  engineState 
)
inlinevirtual

Provide vehicle data items for this component.

Parameters
[out]axleDescriptionidentifies the wheels on each axle.
[out]commandsare the brake, throttle and steer values that will drive the vehicle.
[out]transmissionCommandsare the target gear and clutch values that will control the transmission. Can be set to NULL if the vehicle does not have a gearbox. If specified, then gearParams and gearState has to be specifed too.
[out]gearParamsThe gearbox parameters. Can be set to NULL if the vehicle does not have a gearbox and transmissionCommands is NULL.
[out]gearStateThe state of the gearbox. Can be set to NULL if the vehicle does not have a gearbox and transmissionCommands is NULL.
[out]engineParamsThe engine parameters. Can be set to NULL if the vehicle does not have an engine. Must be specified, if engineState is specified.
[out]physxActoris the PxRigidBody instance associated with the vehicle.
[out]physxSteerStateis the previous state of the steer and is used to determine if the steering wheel has changed by comparing with PxVehicleCommandState::steer.
[out]physxConstraintsThe state of the suspension limit and low speed tire constraints. If the vehicle actor is sleeping and constraints are active, they will be deactivated and marked as dirty.
[out]rigidBodyStateis the state of the rigid body used by the Vehicle SDK.
[out]wheelRigidBody1dStatesdescribes the angular speed of each wheel.
[out]engineStateThe engine state. Can be set to NULL if the vehicle does not have an engine. If specified, then engineParams has to be specifed too.

Reimplemented from snippetvehicle2::PhysXActorVehicle.

◆ getDataForPhysXActorEndComponent()

virtual void snippetvehicle2::EngineDriveVehicle::getDataForPhysXActorEndComponent ( const PxVehicleAxleDescription *&  axleDescription,
const PxVehicleRigidBodyState *&  rigidBodyState,
PxVehicleArrayData< const PxVehicleWheelParams > &  wheelParams,
PxVehicleArrayData< const PxTransform > &  wheelShapeLocalPoses,
PxVehicleArrayData< const PxVehicleWheelRigidBody1dState > &  wheelRigidBody1dStates,
PxVehicleArrayData< const PxVehicleWheelLocalPose > &  wheelLocalPoses,
const PxVehicleGearboxState *&  gearState,
PxVehiclePhysXActor *&  physxActor 
)
inlinevirtual

Provide vehicle data items for this component.

Parameters
[out]axleDescriptionidentifies the wheels on each axle.
[out]rigidBodyStateis the state of the rigid body used by the Vehicle SDK.
[out]wheelParamsdescribes the radius, mass etc. of the wheels.
[out]wheelShapeLocalPosesare the local poses in the wheel's frame to apply to the PxShape instances that represent the wheel
[out]wheelRigidBody1dStatesdescribes the angular speed of the wheels.
[out]wheelLocalPosesdescribes the local poses of the wheels in the rigid body frame.
[out]gearStateThe gear state. Can be set to NULL if the vehicle does not have gears.
[out]physxActoris the PxRigidBody instance associated with the vehicle.

Reimplemented from snippetvehicle2::PhysXActorVehicle.

◆ getDataForTankDriveDifferentialStateComponent()

virtual void snippetvehicle2::EngineDriveVehicle::getDataForTankDriveDifferentialStateComponent ( const PxVehicleAxleDescription *&  axleDescription,
const PxVehicleTankDriveTransmissionCommandState *&  transmissionCommands,
PxVehicleArrayData< const PxVehicleWheelParams > &  wheelParams,
const PxVehicleTankDriveDifferentialParams *&  differentialParams,
PxVehicleDifferentialState *&  differentialState,
PxVehicleWheelConstraintGroupState *&  constraintGroupState 
)
inlinevirtual

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.

Implements physx::vehicle2::PxVehicleTankDriveDifferentialStateComponent.

◆ initComponentSequence()

void snippetvehicle2::EngineDriveVehicle::initComponentSequence ( bool  addPhysXBeginEndComponents)
virtual

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