PxVehicleDriveTank Class Reference
[Vehicle]
Data structure with instanced dynamics data and configuration data of a tank.
More...
#include <PxVehicleDriveTank.h>


Detailed Description
Data structure with instanced dynamics data and configuration data of a tank.Member Enumeration Documentation
anonymous enum |
The ordering of the driven wheels.
- Enumerator:
Constructor & Destructor Documentation
PxVehicleDriveTank::PxVehicleDriveTank | ( | ) | [inline, private] |
PxVehicleDriveTank::~PxVehicleDriveTank | ( | ) | [inline, private] |
Member Function Documentation
static PxVehicleDriveTank* PxVehicleDriveTank::allocate | ( | const PxU32 | numWheels | ) | [static] |
static PxVehicleDriveTank* PxVehicleDriveTank::create | ( | PxPhysics * | physics, | |
PxRigidDynamic * | vehActor, | |||
const PxVehicleWheelsSimData & | wheelsData, | |||
const PxVehicleDriveSimData & | driveData, | |||
const PxU32 | numDrivenWheels | |||
) | [static] |
Create a tank with.
(i) a PxPhysics instance - needed to setup special vehicle constraints maintained by the vehicle. (ii) a PxRigidDynamic instance - the rigid body representation of the tank in the physx sdk. (iii)a PxVehicleWheelsSimData instance describing the wheel/suspension/tires - the tank instance takes a copy of this input data. (iv) a PxVehicleDriveSimData instance describing the drive data - the tank instance takes a copy of this input data. (v) the number of driven wheels (the number of tank wheels) (vi) it is assumed that the first numDrivenWheel shapes of vehActor correspond to the wheel shapes of the tank (vii)it is assumed that the even-numbered wheel shapes are the left-hand wheels ordered in sequence from front to back (viii)it is assumed that the odd-numbered wheel shapes are the right-hand wheels ordered in sequence from front to back (ix) it is assumed that the N non-driven wheel shapes are shapes 4 -> 4+N-1 of the actor. (x) it is assumed that the ordering of the wheel shapes in the actor matches the ordering in PxVehicleWheelsSimData. (xi) to break assumptions (vi)-(x) see PxVehicleWheels::setWheelShapeMapping
- See also:
- free, setToRestState, setup
void PxVehicleDriveTank::free | ( | ) |
eDriveModel PxVehicleDriveTank::getDriveModel | ( | ) | const [inline] |
Return the driving model.
bool PxVehicleDriveTank::isValid | ( | ) | const [private] |
Test if the instanced dynamics and configuration data has legal values.
Reimplemented from PxVehicleDrive.
void PxVehicleDriveTank::setDriveModel | ( | const eDriveModel | driveModel | ) | [inline] |
Set driving model.
eDRIVE_MODEL_STANDARD: turning achieved by braking on one side, accelerating on the other side. eDRIVE_MODEL_SPECIAL: turning achieved by accelerating forwards on one side, accelerating backwards on the other side. default value is eDRIVE_MODEL_STANDARD
void PxVehicleDriveTank::setToRestState | ( | ) |
void PxVehicleDriveTank::setup | ( | PxPhysics * | physics, | |
PxRigidDynamic * | vehActor, | |||
const PxVehicleWheelsSimData & | wheelsData, | |||
const PxVehicleDriveSimData & | driveData, | |||
const PxU32 | numDrivenWheels | |||
) |
Set up a tank with.
(i) a PxPhysics instance - needed to setup special vehicle constraints maintained by the vehicle. (ii) a PxRigidDynamic instance - the rigid body representation of the tank in the physx sdk. (iii)a PxVehicleWheelsSimData instance describing the wheel/suspension/tires - the tank instance takes a copy of this input data. (iv) a PxVehicleDriveSimData instance describing the drive data - the tank instance takes a copy of this input data. (v) the number of driven wheels. (vi) it is assumed that the first numDrivenWheel shapes of vehActor correspond to the wheel shapes of the tank (vii)it is assumed that the even-numbered wheel shapes are the left-hand wheels ordered in sequence from front to back (viii)it is assumed that the odd-numbered wheel shapes are the right-hand wheels ordered in sequence from front to back (ix) it is assumed that the N non-driven wheel shapes are shapes 4 -> 4+N-1 of the actor. (x) it is assumed that the ordering of the wheel shapes in the actor matches the ordering in PxVehicleWheelsSimData. (xi) to break assumpgions (vi)-(x) see PxVehicleWheels::setWheelShapeMapping
- See also:
- allocate, free, setToRestState, eWheelOrdering
Friends And Related Function Documentation
friend class PxVehicleUpdate [friend] |
Reimplemented from PxVehicleDrive.
Member Data Documentation
eDriveModel PxVehicleDriveTank::mDriveModel [private] |
PxU32 PxVehicleDriveTank::mPad[3] [private] |
Reimplemented from PxVehicleWheels.
The documentation for this class was generated from the following file:
Copyright © 2008-2012 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com