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

Forward integrate the angular speed of each wheel on a vehicle by integrating the brake and drive torque applied to each wheel and the torque that develops on the tire as a response to the longitudinal tire force. More...

#include <PxVehicleDrivetrainComponents.h>

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

Public Member Functions

virtual void getDataForDirectDrivetrainComponent (const PxVehicleAxleDescription *&axleDescription, PxVehicleArrayData< const PxReal > &brakeResponseStates, PxVehicleArrayData< const PxReal > &throttleResponseStates, PxVehicleArrayData< const PxVehicleWheelParams > &wheelParams, PxVehicleArrayData< const PxVehicleWheelActuationState > &actuationStates, PxVehicleArrayData< const PxVehicleTireForce > &tireForces, PxVehicleArrayData< PxVehicleWheelRigidBody1dState > &wheelRigidBody1dStates)=0
 
virtual bool update (const PxReal dt, const PxVehicleSimulationContext &context)
 Update function for a vehicle component.
 

Detailed Description

Forward integrate the angular speed of each wheel on a vehicle by integrating the brake and drive torque applied to each wheel and the torque that develops on the tire as a response to the longitudinal tire force.

See also
PxVehicleDirectDriveUpdate

Member Function Documentation

◆ update()

virtual bool physx::vehicle2::PxVehicleDirectDrivetrainComponent::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: