Panda3D
 All Classes Functions Variables Enumerations
physxCapsuleShapeDesc.h
1 // Filename: physxCapsuleShapeDesc.h
2 // Created by: enn0x (11Sep09)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef PHYSXCAPSULESHAPEDESC_H
16 #define PHYSXCAPSULESHAPEDESC_H
17 
18 #include "pandabase.h"
19 
20 #include "physxShapeDesc.h"
21 #include "physx_includes.h"
22 
23 ////////////////////////////////////////////////////////////////////
24 // Class : PhysxCapsuleShapeDesc
25 // Description : Descriptor class for PhysxCapsuleShape.
26 ////////////////////////////////////////////////////////////////////
27 class EXPCL_PANDAPHYSX PhysxCapsuleShapeDesc : public PhysxShapeDesc {
28 
29 PUBLISHED:
30  INLINE PhysxCapsuleShapeDesc();
31  INLINE ~PhysxCapsuleShapeDesc();
32 
33  INLINE void set_to_default();
34  INLINE bool is_valid() const;
35 
36  void set_radius(float radius);
37  void set_height(float height);
38 
39  float get_radius() const;
40  float get_height() const;
41 
42 public:
43  NxShapeDesc *ptr() const { return (NxShapeDesc *)&_desc; };
44  NxCapsuleShapeDesc _desc;
45 };
46 
47 #include "physxCapsuleShapeDesc.I"
48 
49 #endif // PHYSXCAPSULESHAPEDESC_H
Descriptor class for PhysxCapsuleShape.
Abstract base class for shape descriptors.