Panda3D
 All Classes Functions Variables Enumerations
physxBoxForceFieldShapeDesc.h
1 // Filename: physxBoxForceFieldShapeDesc.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 PHYSXBOXFORCEFIELDSHAPEDESC_H
16 #define PHYSXBOXFORCEFIELDSHAPEDESC_H
17 
18 #include "pandabase.h"
19 #include "luse.h"
20 
21 #include "physxForceFieldShapeDesc.h"
22 #include "physx_includes.h"
23 
24 ////////////////////////////////////////////////////////////////////
25 // Class : PhysxBoxForceFieldShapeDesc
26 // Description : Descriptor for a box force field shape.
27 ////////////////////////////////////////////////////////////////////
28 class EXPCL_PANDAPHYSX PhysxBoxForceFieldShapeDesc : public PhysxForceFieldShapeDesc {
29 
30 PUBLISHED:
32  INLINE ~PhysxBoxForceFieldShapeDesc();
33 
34  INLINE void set_to_default();
35  INLINE bool is_valid() const;
36 
37  void set_dimensions(const LVector3f &dimensions);
38 
39  LVector3f get_dimensions() const;
40 
41 public:
42  NxForceFieldShapeDesc *ptr() const { return (NxForceFieldShapeDesc *)&_desc; };
43  NxBoxForceFieldShapeDesc _desc;
44 };
45 
46 #include "physxBoxForceFieldShapeDesc.I"
47 
48 #endif // PHYSXBOXFORCEFIELDSHAPEDESC_H
Abstract base class for descriptors for force field shapes descriptors.
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
Definition: lvector3.h:100
Descriptor for a box force field shape.