RavEngine
Loading...
Searching...
No Matches
PxvManager.h
Go to the documentation of this file.
1// Redistribution and use in source and binary forms, with or without
2// modification, are permitted provided that the following conditions
3// are met:
4// * Redistributions of source code must retain the above copyright
5// notice, this list of conditions and the following disclaimer.
6// * Redistributions in binary form must reproduce the above copyright
7// notice, this list of conditions and the following disclaimer in the
8// documentation and/or other materials provided with the distribution.
9// * Neither the name of NVIDIA CORPORATION nor the names of its
10// contributors may be used to endorse or promote products derived
11// from this software without specific prior written permission.
12//
13// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
14// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
17// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24//
25// Copyright (c) 2008-2022 NVIDIA Corporation. All rights reserved.
26// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
27// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
28
29#ifndef PXV_MANAGER_H
30#define PXV_MANAGER_H
31
32#include "foundation/PxVec3.h"
33#include "foundation/PxQuat.h"
34#include "foundation/PxTransform.h"
35#include "foundation/PxMemory.h"
36#include "PxvConfig.h"
37#include "PxvGeometry.h"
38
39namespace physx
40{
41
47/************************************************************************/
48/* Managers */
49/************************************************************************/
50
51class PxsContactManager;
52
53struct PxsRigidCore;
54struct PxsShapeCore;
55class PxsRigidBody;
56
61{
62 PXD_MANAGER_CCD_NONE,
63 PXD_MANAGER_CCD_LINEAR
64};
65
70{
76 //void* userData;
77
85
93
98 PxsRigidBody* rigidBody1;
99
104 const PxsShapeCore* shapeCore1;
105
110 PxsRigidCore* rigidCore1;
111
116
121
126
130 //int disableStrongFriction;
131
136
141
146
151
156
161
172
178
179 /*
180 Index entries into the transform cache for shape 0
181 */
182 PxU32 transformCache0;
183
184 /*
185 Index entries into the transform cache for shape 1
186 */
187 PxU32 transformCache1;
188
190 {
191 PxMemSet(this, 0, sizeof(PxvManagerDescRigidRigid));
192
193 dominance0 = 1u;
194 dominance1 = 1u;
195 }
196};
197
198
203{
204 void* userData;
205
206 // PT: only useful to search for places where we get/set this specific user data
207 PX_FORCE_INLINE void setCMTouchEventUserData(void* ud) { userData = ud; }
208 PX_FORCE_INLINE void* getCMTouchEventUserData() const { return userData; }
209};
210
211}
212
213#endif
214
Definition PxsRigidBody.h:43
#define PX_FORCE_INLINE
Definition PxPreprocessor.h:335
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
PX_FORCE_INLINE void * PxMemSet(void *dest, PxI32 c, PxU32 count)
Sets the bytes of the provided buffer to the specified value.
Definition PxMemory.h:67
PxvContactManagerCCDMode
Definition PxvManager.h:61
Definition PxvDynamics.h:48
Definition PxvGeometry.h:221
Definition PxvManager.h:203
Definition PxvManager.h:70
const PxsShapeCore * shapeCore0
Definition PxvManager.h:103
int hasArticulations
Definition PxvManager.h:155
int hasForceThreshold
Definition PxvManager.h:120
bool body1Kinematic
Definition PxvManager.h:177
int reportContactInfo
Definition PxvManager.h:115
PxU8 dominance1
Definition PxvManager.h:92
int disableResponse
Definition PxvManager.h:140
int contactChangeable
Definition PxvManager.h:125
PxU8 dominance0
Definition PxvManager.h:84
int hasDynamics
Definition PxvManager.h:160
int disableCCDContact
Definition PxvManager.h:150
PxsRigidCore * rigidCore0
Definition PxvManager.h:109
PxReal restDistance
Definition PxvManager.h:135
int hasTouch
Definition PxvManager.h:171
int disableDiscreteContact
Definition PxvManager.h:145
PxsRigidBody * rigidBody0
Definition PxvManager.h:97