Panda3D
 All Classes Functions Variables Enumerations
physxSphereForceFieldShapeDesc.h
1 // Filename: physxSphereForceFieldShapeDesc.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 PHYSXSPHEREFORCEFIELDSHAPEDESC_H
16 #define PHYSXSPHEREFORCEFIELDSHAPEDESC_H
17 
18 #include "pandabase.h"
19 
20 #include "physxForceFieldShapeDesc.h"
21 #include "physx_includes.h"
22 
23 ////////////////////////////////////////////////////////////////////
24 // Class : PhysxSphereForceFieldShapeDesc
25 // Description : A descriptor for a sphere force field shape.
26 ////////////////////////////////////////////////////////////////////
28 
29 PUBLISHED:
31  INLINE ~PhysxSphereForceFieldShapeDesc();
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  NxForceFieldShapeDesc *ptr() const { return (NxForceFieldShapeDesc *)&_desc; };
42  NxSphereForceFieldShapeDesc _desc;
43 };
44 
45 #include "physxSphereForceFieldShapeDesc.I"
46 
47 #endif // PHYSXSPHEREFORCEFIELDSHAPEDESC_H
Abstract base class for descriptors for force field shapes descriptors.
A descriptor for a sphere force field shape.