PhysX SDK 3.2 API Reference: PxVehicleDrive Class Reference

PhysX SDK 3.2 API

PxVehicleDrive Class Reference
[Vehicle]

A complete vehicle with instance dynamics data and configuration data for wheels and engine,clutch,gears,autobox. More...

#include <PxVehicleDrive.h>

Inheritance diagram for PxVehicleDrive:
Collaboration diagram for PxVehicleDrive:

List of all members.


Public Attributes

PxVehicleDriveDynData mDriveDynData
 Dynamics data of vehicle instance.

Protected Member Functions

 PxVehicleDrive ()
 ~PxVehicleDrive ()
bool isValid () const
 Test that all instanced dynamics data and configuration data have legal values.
void setToRestState ()
 Set vehicle to rest.
void free ()
 Deallocate a PxVehicle4WDrive instance.
void setup (PxPhysics *physics, PxRigidDynamic *vehActor, const PxVehicleWheelsSimData &wheelsData, const PxU32 numDrivenWheels, const PxU32 numNonDrivenWheels)

Static Protected Member Functions

static PxU32 computeByteSize (const PxU32 numWheels4)
static PxU8patchupPointers (PxVehicleDrive *vehDrive, PxU8 *ptr, const PxU32 numWheels4, const PxU32 numWheels)

Friends

class PxVehicleUpdate

Detailed Description

A complete vehicle with instance dynamics data and configuration data for wheels and engine,clutch,gears,autobox.

See also:
PxVehicleDrive4W, PxVehicleDriveTank

Constructor & Destructor Documentation

PxVehicleDrive::PxVehicleDrive (  )  [inline, protected]

PxVehicleDrive::~PxVehicleDrive (  )  [inline, protected]


Member Function Documentation

static PxU32 PxVehicleDrive::computeByteSize ( const PxU32  numWheels4  )  [static, protected]

void PxVehicleDrive::free (  )  [protected]

Deallocate a PxVehicle4WDrive instance.

See also:
PxVehicleDrive4W::free, PxVehicleDriveTank::free

Reimplemented from PxVehicleWheels.

Reimplemented in PxVehicleDrive4W, and PxVehicleDriveTank.

bool PxVehicleDrive::isValid (  )  const [protected]

Test that all instanced dynamics data and configuration data have legal values.

Reimplemented from PxVehicleWheels.

Reimplemented in PxVehicleDrive4W, and PxVehicleDriveTank.

static PxU8* PxVehicleDrive::patchupPointers ( PxVehicleDrive vehDrive,
PxU8 ptr,
const PxU32  numWheels4,
const PxU32  numWheels 
) [static, protected]

void PxVehicleDrive::setToRestState (  )  [protected]

Set vehicle to rest.

Reimplemented from PxVehicleWheels.

Reimplemented in PxVehicleDrive4W, and PxVehicleDriveTank.

void PxVehicleDrive::setup ( PxPhysics physics,
PxRigidDynamic vehActor,
const PxVehicleWheelsSimData wheelsData,
const PxU32  numDrivenWheels,
const PxU32  numNonDrivenWheels 
) [protected]


Friends And Related Function Documentation

friend class PxVehicleUpdate [friend]

Reimplemented from PxVehicleWheels.

Reimplemented in PxVehicleDrive4W, and PxVehicleDriveTank.


Member Data Documentation

Dynamics data of vehicle instance.

See also:
setup


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