Panda3D
 All Classes Functions Variables Enumerations
physxPlaneShapeDesc.h
1 // Filename: physxPlaneShapeDesc.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 PHYSXPLANESHAPEDESC_H
16 #define PHYSXPLANESHAPEDESC_H
17 
18 #include "pandabase.h"
19 #include "physxShapeDesc.h"
20 
21 #include "luse.h"
22 
23 #include "physx_includes.h"
24 
25 ////////////////////////////////////////////////////////////////////
26 // Class : PhysxPlaneShapeDesc
27 // Description : Descriptor class for PhysxPlaneShape.
28 ////////////////////////////////////////////////////////////////////
29 class EXPCL_PANDAPHYSX PhysxPlaneShapeDesc : public PhysxShapeDesc {
30 
31 PUBLISHED:
32  INLINE PhysxPlaneShapeDesc();
33  INLINE ~PhysxPlaneShapeDesc();
34 
35  INLINE void set_to_default();
36  INLINE bool is_valid() const;
37 
38  void set_plane(const LVector3f &normal, float d);
39 
40 public:
41  NxShapeDesc *ptr() const { return (NxShapeDesc *)&_desc; };
42  NxPlaneShapeDesc _desc;
43 };
44 
45 #include "physxPlaneShapeDesc.I"
46 
47 #endif // PHYSXPLANESHAPEDESC_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 PhysxPlaneShape.
Abstract base class for shape descriptors.