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

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

#include <PxVehicleCommandStates.h>

Inheritance diagram for physx::vehicle2::PxVehicleEngineDriveTransmissionCommandState:
[legend]

Public Types

enum  Enum { eAUTOMATIC_GEAR = 0xff }
 

Public Member Functions

PX_FORCE_INLINE void setToDefault ()
 

Public Attributes

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.
 

Detailed Description

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

Member Enumeration Documentation

◆ Enum

Enumerator
eAUTOMATIC_GEAR 

Special gear value to denote the automatic shift mode (often referred to as DRIVE).

When using automatic transmission, setting this value as target gear will enable automatic gear shifts between first and highest gear. If the current gear is a reverse gear or the neutral gear, then this value will trigger a shift to first gear. If this value is used even though there is no automatic transmission available, the gear state will remain unchanged.


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