Panda3D
 All Classes Functions Variables Enumerations
physxBoxForceFieldShapeDesc.h
00001 // Filename: physxBoxForceFieldShapeDesc.h
00002 // Created by:  enn0x (06Nov09)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef PHYSXBOXFORCEFIELDSHAPEDESC_H
00016 #define PHYSXBOXFORCEFIELDSHAPEDESC_H
00017 
00018 #include "pandabase.h"
00019 #include "luse.h"
00020 
00021 #include "physxForceFieldShapeDesc.h"
00022 #include "physx_includes.h"
00023 
00024 ////////////////////////////////////////////////////////////////////
00025 //       Class : PhysxBoxForceFieldShapeDesc
00026 // Description : Descriptor for a box force field shape.
00027 ////////////////////////////////////////////////////////////////////
00028 class EXPCL_PANDAPHYSX PhysxBoxForceFieldShapeDesc : public PhysxForceFieldShapeDesc {
00029 
00030 PUBLISHED:
00031   INLINE PhysxBoxForceFieldShapeDesc();
00032   INLINE ~PhysxBoxForceFieldShapeDesc();
00033 
00034   INLINE void set_to_default();
00035   INLINE bool is_valid() const;
00036 
00037   void set_dimensions(const LVector3f &dimensions);
00038 
00039   LVector3f get_dimensions() const;
00040 
00041 public:
00042   NxForceFieldShapeDesc *ptr() const { return (NxForceFieldShapeDesc *)&_desc; };
00043   NxBoxForceFieldShapeDesc _desc;
00044 };
00045 
00046 #include "physxBoxForceFieldShapeDesc.I"
00047 
00048 #endif // PHYSXBOXFORCEFIELDSHAPEDESC_H
 All Classes Functions Variables Enumerations