Panda3D
physxSphereForceFieldShapeDesc.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file physxSphereForceFieldShapeDesc.h
10  * @author enn0x
11  * @date 2009-11-06
12  */
13 
14 #ifndef PHYSXSPHEREFORCEFIELDSHAPEDESC_H
15 #define PHYSXSPHEREFORCEFIELDSHAPEDESC_H
16 
17 #include "pandabase.h"
18 
20 #include "physx_includes.h"
21 
22 /**
23  * A descriptor for a sphere force field shape.
24  */
26 
27 PUBLISHED:
30 
31  INLINE void set_to_default();
32  INLINE bool is_valid() const;
33 
34  void set_radius(float radius);
35 
36  float get_radius() const;
37 
38 public:
39  NxForceFieldShapeDesc *ptr() const { return (NxForceFieldShapeDesc *)&_desc; };
40  NxSphereForceFieldShapeDesc _desc;
41 };
42 
44 
45 #endif // PHYSXSPHEREFORCEFIELDSHAPEDESC_H
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Abstract base class for descriptors for force field shapes descriptors.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A descriptor for a sphere force field shape.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.