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:

Inheritance graph
PxVehicleDrive4WPxVehicleDriveNWPxVehicleDriveTankPxVehicleWheelsPxBase
[legend]
Collaboration diagram for PxVehicleDrive:

Collaboration graph
PxVehicleWheelsPxBasePxActorPxFlags\< PxBaseFlag::Enum, PxU16 \>PxVehicleWheelsSimDataPxVehicleTireLoadFilterDataPxVehicleAntiRollBarDataPxRigidDynamicPxRigidBodyPxRigidActorPxVehicleWheelsDynDataPxVehicleDriveDynData
[legend]

List of all members.

Public Member Functions

 PxVehicleDrive (PxBaseFlags baseFlags)
virtual const char * getConcreteTypeName () const
 Returns string name of dynamic type.

Static Public Member Functions

static void getBinaryMetaData (PxOutputStream &stream)

Public Attributes

PxVehicleDriveDynData mDriveDynData
 Dynamics data of vehicle instance.

Protected Member Functions

bool isValid () const
 Test that all instanced dynamics data and configuration data have legal values.
void setToRestState ()
 Set vehicle to rest.
virtual void init (const PxU32 numWheels)
void free ()
 Deallocate a PxVehicle4WDrive instance.
void setup (PxPhysics *physics, PxRigidDynamic *vehActor, const PxVehicleWheelsSimData &wheelsData, const PxU32 nbDrivenWheels, const PxU32 nbNonDrivenWheels)
 PxVehicleDrive (PxType concreteType, PxBaseFlags baseFlags)
 ~PxVehicleDrive ()
virtual bool isKindOf (const char *name) const
 Returns whether a given type name matches with the type of this instance.

Static Protected Member Functions

static PxU32 computeByteSize (const PxU32 numWheels)
static PxU8 * patchupPointers (const PxU32 nbWheels, PxVehicleDrive *vehDrive, PxU8 *ptr)

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 ( PxBaseFlags  baseFlags  )  [inline]

PxVehicleDrive::PxVehicleDrive ( PxType  concreteType,
PxBaseFlags  baseFlags 
) [inline, protected]

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


Member Function Documentation

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

void PxVehicleDrive::free (  )  [protected]

Deallocate a PxVehicle4WDrive instance.

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

Reimplemented from PxVehicleWheels.

Reimplemented in PxVehicleDrive4W, PxVehicleDriveNW, and PxVehicleDriveTank.

static void PxVehicleDrive::getBinaryMetaData ( PxOutputStream stream  )  [static]

Reimplemented from PxVehicleWheels.

Reimplemented in PxVehicleDrive4W, PxVehicleDriveNW, and PxVehicleDriveTank.

virtual const char* PxVehicleDrive::getConcreteTypeName (  )  const [inline, virtual]

Returns string name of dynamic type.

Returns:
Class name of most derived type of this object.

Reimplemented from PxVehicleWheels.

Reimplemented in PxVehicleDrive4W, PxVehicleDriveNW, and PxVehicleDriveTank.

virtual void PxVehicleDrive::init ( const PxU32  numWheels  )  [protected, virtual]

Reimplemented from PxVehicleWheels.

virtual bool PxVehicleDrive::isKindOf ( const char *  superClass  )  const [inline, protected, virtual]

Returns whether a given type name matches with the type of this instance.

Reimplemented from PxVehicleWheels.

Reimplemented in PxVehicleDrive4W, PxVehicleDriveNW, and PxVehicleDriveTank.

References PxBase::isKindOf().

bool PxVehicleDrive::isValid (  )  const [protected]

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

Reimplemented from PxVehicleWheels.

Reimplemented in PxVehicleDrive4W, PxVehicleDriveNW, and PxVehicleDriveTank.

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

void PxVehicleDrive::setToRestState (  )  [protected]

Set vehicle to rest.

Reimplemented from PxVehicleWheels.

Reimplemented in PxVehicleDrive4W, PxVehicleDriveNW, and PxVehicleDriveTank.

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


Friends And Related Function Documentation

friend class PxVehicleUpdate [friend]

Reimplemented from PxVehicleWheels.

Reimplemented in PxVehicleDrive4W, PxVehicleDriveNW, 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-2018 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com