Panda3D
 All Classes Functions Variables Enumerations
physxSphereShapeDesc.h
1 // Filename: physxSphereShapeDesc.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 PHYSXSPHERESHAPEDESC_H
16 #define PHYSXSPHERESHAPEDESC_H
17 
18 #include "pandabase.h"
19 
20 #include "physxShapeDesc.h"
21 #include "physx_includes.h"
22 
23 ////////////////////////////////////////////////////////////////////
24 // Class : PhysxSphereShapeDesc
25 // Description : Descriptor class for PhysxSphereShape.
26 ////////////////////////////////////////////////////////////////////
27 class EXPCL_PANDAPHYSX PhysxSphereShapeDesc : public PhysxShapeDesc {
28 
29 PUBLISHED:
30  INLINE PhysxSphereShapeDesc();
31  INLINE ~PhysxSphereShapeDesc();
32 
33  INLINE void set_to_default();
34  INLINE bool is_valid() const;
35 
36  void set_radius(float radius);
37 
38  float get_radius() const;
39 
40 public:
41  NxShapeDesc *ptr() const { return (NxShapeDesc *)&_desc; };
42  NxSphereShapeDesc _desc;
43 };
44 
45 #include "physxSphereShapeDesc.I"
46 
47 #endif // PHYSXSPHERESHAPEDESC_H
Descriptor class for PhysxSphereShape.
Abstract base class for shape descriptors.