NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxVehicleDriveTankControl Struct Reference

NVIDIA PhysX SDK 3.4 API

PxVehicleDriveTankControl Struct Reference
[Vehicle]

The control inputs for a PxVehicleDriveTank. More...

#include <PxVehicleDriveTank.h>

List of all members.


Public Types

enum  Enum {
  eANALOG_INPUT_ACCEL = 0,
  eANALOG_INPUT_BRAKE_LEFT,
  eANALOG_INPUT_BRAKE_RIGHT,
  eANALOG_INPUT_THRUST_LEFT,
  eANALOG_INPUT_THRUST_RIGHT,
  eMAX_NB_DRIVETANK_ANALOG_INPUTS
}

Detailed Description

The control inputs for a PxVehicleDriveTank.

Note:
The values of eANALOG_INPUT_THRUST_LEFT and eANALOG_INPUT_THRUST_RIGHT determine how much of the total available drive torque is diverted to the left and right wheels. These entries in the enumerated list represent the state of the left and right control sticks of a tank. The total available drive torque available is controlled by eANALOG_INPUT_ACCEL, which represents the state of the acceleration pedal and controls how much torque will be applied to the engine.

To accelerate forwards eANALOG_INPUT_ACCEL must be greater than zero so that torque is applied to drive the engine, while eANALOG_INPUT_THRUST_LEFT and eANALOG_INPUT_THRUST_RIGHT must also be greater than zero to divert the available drive torque to the left and wheels. If eANALOG_INPUT_THRUST_LEFT > eANALOG_INPUT_THRUST_RIGHT the tank will turn to the right. If eANALOG_INPUT_THRUST_RIGHT > eANALOG_INPUT_THRUST_LEFT the tank will turn to the left.

See also:
PxVehicleDriveDynData::setAnalogInput, PxVehicleDriveDynData::getAnalogInput

Member Enumeration Documentation

Enumerator:
eANALOG_INPUT_ACCEL 
eANALOG_INPUT_BRAKE_LEFT 
eANALOG_INPUT_BRAKE_RIGHT 
eANALOG_INPUT_THRUST_LEFT 
eANALOG_INPUT_THRUST_RIGHT 
eMAX_NB_DRIVETANK_ANALOG_INPUTS 


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



Copyright © 2008-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com