Panda3D
physxBoxShapeDesc.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 physxBoxShapeDesc.h
10  * @author enn0x
11  * @date 2009-09-08
12  */
13 
14 #ifndef PHYSXBOXSHAPEDESC_H
15 #define PHYSXBOXSHAPEDESC_H
16 
17 #include "pandabase.h"
18 #include "luse.h"
19 
20 #include "physxShapeDesc.h"
21 #include "physx_includes.h"
22 
23 /**
24  * Descriptor class for PhysxBoxShape.
25  */
26 class EXPCL_PANDAPHYSX PhysxBoxShapeDesc : public PhysxShapeDesc {
27 
28 PUBLISHED:
29  INLINE PhysxBoxShapeDesc();
30  INLINE ~PhysxBoxShapeDesc();
31 
32  INLINE void set_to_default();
33  INLINE bool is_valid() const;
34 
35  void set_dimensions(const LVector3f &dimensions);
36 
37  LVector3f get_dimensions() const;
38 
39 public:
40  NxShapeDesc *ptr() const { return (NxShapeDesc *)&_desc; };
41  NxBoxShapeDesc _desc;
42 };
43 
44 #include "physxBoxShapeDesc.I"
45 
46 #endif // PHYSXBOXSHAPEDESC_H
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PhysxBoxShapeDesc
Descriptor class for PhysxBoxShape.
Definition: physxBoxShapeDesc.h:26
physxShapeDesc.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PhysxShapeDesc
Abstract base class for shape descriptors.
Definition: physxShapeDesc.h:29
luse.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physxBoxShapeDesc.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physx_includes.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.