Panda3D
|
00001 // Filename: physxCapsuleForceFieldShapeDesc.h 00002 // Created by: enn0x (06Nov09) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef PHYSXCAPSULEFORCEFIELDSHAPEDESC_H 00016 #define PHYSXCAPSULEFORCEFIELDSHAPEDESC_H 00017 00018 #include "pandabase.h" 00019 00020 #include "physxForceFieldShapeDesc.h" 00021 #include "physx_includes.h" 00022 00023 //////////////////////////////////////////////////////////////////// 00024 // Class : PhysxCapsuleForceFieldShapeDesc 00025 // Description : Descriptor for a capsule force field shape. 00026 //////////////////////////////////////////////////////////////////// 00027 class EXPCL_PANDAPHYSX PhysxCapsuleForceFieldShapeDesc : public PhysxForceFieldShapeDesc { 00028 00029 PUBLISHED: 00030 INLINE PhysxCapsuleForceFieldShapeDesc(); 00031 INLINE ~PhysxCapsuleForceFieldShapeDesc(); 00032 00033 INLINE void set_to_default(); 00034 INLINE bool is_valid() const; 00035 00036 void set_radius(float radius); 00037 void set_height(float height); 00038 00039 float get_radius() const; 00040 float get_height() const; 00041 00042 public: 00043 NxForceFieldShapeDesc *ptr() const { return (NxForceFieldShapeDesc *)&_desc; }; 00044 NxCapsuleForceFieldShapeDesc _desc; 00045 }; 00046 00047 #include "physxCapsuleForceFieldShapeDesc.I" 00048 00049 #endif // PHYSXCAPSULEFORCEFIELDSHAPEDESC_H