Panda3D
 All Classes Functions Variables Enumerations
physxConvexForceFieldShapeDesc.h
1 // Filename: physxConvexForceFieldShapeDesc.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 PHYSXCONVEXFORCEFIELDSHAPEDESC_H
16 #define PHYSXCONVEXFORCEFIELDSHAPEDESC_H
17 
18 #include "pandabase.h"
19 
20 #include "physxForceFieldShapeDesc.h"
21 #include "physx_includes.h"
22 
23 class PhysxConvexMesh;
24 
25 ////////////////////////////////////////////////////////////////////
26 // Class : PhysxConvexForceFieldShapeDesc
27 // Description : A descriptor for a convex force field shape.
28 ////////////////////////////////////////////////////////////////////
30 
31 PUBLISHED:
33  INLINE ~PhysxConvexForceFieldShapeDesc();
34 
35  INLINE void set_to_default();
36  INLINE bool is_valid() const;
37 
38  void set_mesh(PhysxConvexMesh *mesh);
39 
40 public:
41  NxForceFieldShapeDesc *ptr() const { return (NxForceFieldShapeDesc *)&_desc; };
42  NxConvexForceFieldShapeDesc _desc;
43 };
44 
45 #include "physxConvexForceFieldShapeDesc.I"
46 
47 #endif // PHYSXCONVEXFORCEFIELDSHAPEDESC_H
Abstract base class for descriptors for force field shapes descriptors.
A descriptor for a convex force field shape.
A Convex Mesh.