RavEngine
Loading...
Searching...
No Matches
physx::vehicle2::PxVehicleTankDriveTransmissionCommandState Struct Reference

A description of the state of transmission-related commands that are applied to a vehicle with tank drive. More...

#include <PxVehicleCommandStates.h>

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

Public Member Functions

PX_FORCE_INLINE void setToDefault ()
 
- Public Member Functions inherited from physx::vehicle2::PxVehicleEngineDriveTransmissionCommandState
PX_FORCE_INLINE void setToDefault ()
 

Public Attributes

PxReal thrusts [2]
 The wheels of each tank track are either all connected to thrusts[0] or all connected to thrusts[1].
 
- Public Attributes inherited from physx::vehicle2::PxVehicleEngineDriveTransmissionCommandState
PxReal clutch
 The instantaneous state of the clutch controller in range [0,1] with 1 denoting fully pressed and 0 fully depressed.
 
PxU32 targetGear
 The desired gear of the input gear controller.
 

Additional Inherited Members

- Public Types inherited from physx::vehicle2::PxVehicleEngineDriveTransmissionCommandState
enum  Enum { eAUTOMATIC_GEAR = 0xff }
 

Detailed Description

A description of the state of transmission-related commands that are applied to a vehicle with tank drive.

Member Data Documentation

◆ thrusts

PxReal physx::vehicle2::PxVehicleTankDriveTransmissionCommandState::thrusts[2]

The wheels of each tank track are either all connected to thrusts[0] or all connected to thrusts[1].

Note
The thrust commands are used to divert torque from the engine to the wheels of the tank tracks controlled by each thrust.
thrusts[0] and thrusts[1] are in range [-1,1] with the sign dictating whether the thrust will be applied positively or negatively with respect to the gearing ratio.

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