Panda3D
 All Classes Functions Variables Enumerations
physxBoxShapeDesc.h
1 // Filename: physxBoxShapeDesc.h
2 // Created by: enn0x (08Sep09)
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 PHYSXBOXSHAPEDESC_H
16 #define PHYSXBOXSHAPEDESC_H
17 
18 #include "pandabase.h"
19 #include "luse.h"
20 
21 #include "physxShapeDesc.h"
22 #include "physx_includes.h"
23 
24 ////////////////////////////////////////////////////////////////////
25 // Class : PhysxBoxShapeDesc
26 // Description : Descriptor class for PhysxBoxShape.
27 ////////////////////////////////////////////////////////////////////
28 class EXPCL_PANDAPHYSX PhysxBoxShapeDesc : public PhysxShapeDesc {
29 
30 PUBLISHED:
31  INLINE PhysxBoxShapeDesc();
32  INLINE ~PhysxBoxShapeDesc();
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  NxShapeDesc *ptr() const { return (NxShapeDesc *)&_desc; };
43  NxBoxShapeDesc _desc;
44 };
45 
46 #include "physxBoxShapeDesc.I"
47 
48 #endif // PHYSXBOXSHAPEDESC_H
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
Definition: lvector3.h:100
Descriptor class for PhysxBoxShape.
Abstract base class for shape descriptors.