Panda3D
 All Classes Functions Variables Enumerations
physxCapsuleControllerDesc.h
1 // Filename: physxCapsuleControllerDesc.h
2 // Created by: enn0x (22Sep09)
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 PHYSXCAPSULECONTROLLERDESC_H
16 #define PHYSXCAPSULECONTROLLERDESC_H
17 
18 #include "pandabase.h"
19 
20 #include "physxControllerDesc.h"
21 #include "physx_includes.h"
22 
23 ////////////////////////////////////////////////////////////////////
24 // Class : PhysxCapsuleControllerDesc
25 // Description : Descriptor class for PhysxCapsuleController.
26 ////////////////////////////////////////////////////////////////////
27 class EXPCL_PANDAPHYSX PhysxCapsuleControllerDesc : public PhysxControllerDesc {
28 
29 PUBLISHED:
31  INLINE ~PhysxCapsuleControllerDesc();
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  NxControllerDesc *ptr() const { return (NxControllerDesc *)&_desc; };
44  NxCapsuleControllerDesc _desc;
45 };
46 
47 #include "physxCapsuleControllerDesc.I"
48 
49 #endif // PHYSXCAPSULECONTROLLERDESC_H
Descriptor class for a character controller.
Descriptor class for PhysxCapsuleController.