PxVehicleUtilSetup.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA CORPORATION and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA CORPORATION is strictly prohibited.
9  */
10 // Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
11 // Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
12 
13 #ifndef PX_VEHICLE_UTILSSETUP_H
14 #define PX_VEHICLE_UTILSSETUP_H
15 
19 #include "vehicle/PxVehicleSDK.h"
20 
21 #ifndef PX_DOXYGEN
22 namespace physx
23 {
24 #endif
25 
29 class PxVehicleWheels;
30 
31 
43 
55 
73 void PxVehicleComputeSprungMasses(const PxU32 nbSprungMasses, const PxVec3* sprungMassCoordinates, const PxVec3& centreOfMass, const PxReal totalMass, const PxU32 gravityDirection, PxReal* sprungMasses);
74 
75 
92 void PxVehicleUpdateCMassLocalPose(const PxTransform& oldCMassLocalPose, const PxTransform& newCMassLocalPose, const PxU32 gravityDirection, PxVehicleWheels* vehicle);
93 
99 {
100 public:
101 
103  {
104  for(PxU32 i = 0; i < PX_MAX_NB_WHEELS; i++)
105  {
106  sourceWheelIds[i] = PX_MAX_U8;
107  targetWheelIds[i] = PX_MAX_U8;
108  }
109  }
110 
111  PxU8 sourceWheelIds[PX_MAX_NB_WHEELS];
112  PxU8 targetWheelIds[PX_MAX_NB_WHEELS];
113 };
114 
136 
137 
138 #ifndef PX_DOXYGEN
139 } // namespace physx
140 #endif
141 
143 #endif //PX_VEHICLE_UTILSSETUP_H


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