Panda3D
 All Classes Functions Variables Enumerations
physxCapsuleForceFieldShapeDesc.h
1 // Filename: physxCapsuleForceFieldShapeDesc.h
2 // Created by: enn0x (06Nov09)
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 PHYSXCAPSULEFORCEFIELDSHAPEDESC_H
16 #define PHYSXCAPSULEFORCEFIELDSHAPEDESC_H
17 
18 #include "pandabase.h"
19 
20 #include "physxForceFieldShapeDesc.h"
21 #include "physx_includes.h"
22 
23 ////////////////////////////////////////////////////////////////////
24 // Class : PhysxCapsuleForceFieldShapeDesc
25 // Description : Descriptor for a capsule force field shape.
26 ////////////////////////////////////////////////////////////////////
28 
29 PUBLISHED:
31  INLINE ~PhysxCapsuleForceFieldShapeDesc();
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  NxForceFieldShapeDesc *ptr() const { return (NxForceFieldShapeDesc *)&_desc; };
44  NxCapsuleForceFieldShapeDesc _desc;
45 };
46 
47 #include "physxCapsuleForceFieldShapeDesc.I"
48 
49 #endif // PHYSXCAPSULEFORCEFIELDSHAPEDESC_H
Abstract base class for descriptors for force field shapes descriptors.
Descriptor for a capsule force field shape.