PxRigidDynamic.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 
14 #ifndef PX_PHYSICS_NX_RIGIDDYNAMIC
15 #define PX_PHYSICS_NX_RIGIDDYNAMIC
16 
20 #include "PxRigidBody.h"
21 
22 #ifndef PX_DOXYGEN
23 namespace physx
24 {
25 #endif
26 
46 {
47 public:
48  // Runtime modifications
49 
50 
51 /************************************************************************************************/
79  virtual void setKinematicTarget(const PxTransform& destination) = 0;
80 
89  virtual bool getKinematicTarget(PxTransform& target) = 0;
90 
91 /************************************************************************************************/
106  virtual void setLinearDamping(PxReal linDamp) = 0;
107 
115  virtual PxReal getLinearDamping() const = 0;
116 
130  virtual void setAngularDamping(PxReal angDamp) = 0;
131 
139  virtual PxReal getAngularDamping() const = 0;
140 
141 /************************************************************************************************/
163  virtual void setMaxAngularVelocity(PxReal maxAngVel) = 0;
164 
172  virtual PxReal getMaxAngularVelocity() const = 0;
173 
174 /************************************************************************************************/
212  virtual bool isSleeping() const = 0;
213 
214 
226  virtual void setSleepThreshold(PxReal threshold) = 0;
227 
235  virtual PxReal getSleepThreshold() const = 0;
236 
250  virtual void setStabilizationThreshold(PxReal threshold) = 0;
251 
261  virtual PxReal getStabilizationThreshold() const = 0;
262 
263 
284  virtual void setWakeCounter(PxReal wakeCounterValue) = 0;
285 
293  virtual PxReal getWakeCounter() const = 0;
294 
309  virtual void wakeUp() = 0;
310 
325  virtual void putToSleep() = 0;
326 
327 /************************************************************************************************/
328 
347  virtual void setSolverIterationCounts(PxU32 minPositionIters, PxU32 minVelocityIters = 1) = 0;
348 
354  virtual void getSolverIterationCounts(PxU32& minPositionIters, PxU32& minVelocityIters) const = 0;
355 
375  virtual PxReal getContactReportThreshold() const = 0;
376 
386  virtual void setContactReportThreshold(PxReal threshold) = 0;
387 
388  virtual const char* getConcreteTypeName() const { return "PxRigidDynamic"; }
389 
390 protected:
391  PX_INLINE PxRigidDynamic(PxType concreteType, PxBaseFlags baseFlags) : PxRigidBody(concreteType, baseFlags) {}
392  PX_INLINE PxRigidDynamic(PxBaseFlags baseFlags) : PxRigidBody(baseFlags) {}
393  virtual ~PxRigidDynamic() {}
394  virtual bool isKindOf(const char* name) const { return !strcmp("PxRigidDynamic", name) || PxRigidBody::isKindOf(name); }
395 
396 };
397 
399 PX_DEPRECATED PX_INLINE const PxRigidDynamic* PxActor::isRigidDynamic() const { return is<PxRigidDynamic>(); }
400 
401 
402 #ifndef PX_DOXYGEN
403 } // namespace physx
404 #endif
405 
407 #endif


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