Panda3D

physxActorDesc.h

00001 // Filename: physxActorDesc.h
00002 // Created by:  enn0x (05Sep09)
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 PHYSXACTORDESC_H
00016 #define PHYSXACTORDESC_H
00017 
00018 #include "pandabase.h"
00019 #include "luse.h"
00020 
00021 #include "physx_includes.h"
00022 
00023 class PhysxBodyDesc;
00024 class PhysxShapeDesc;
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //       Class : PhysxActorDesc
00028 // Description : Descriptor for PhysxActor.
00029 ////////////////////////////////////////////////////////////////////
00030 class EXPCL_PANDAPHYSX PhysxActorDesc {
00031 
00032 PUBLISHED:
00033   INLINE PhysxActorDesc();
00034   INLINE ~PhysxActorDesc();
00035 
00036   INLINE void set_to_default();
00037   INLINE bool is_valid() const;
00038 
00039   void add_shape(PhysxShapeDesc &desc);
00040 
00041   void set_name(const char *name);
00042   void set_density(float density);
00043   void set_global_pos(const LPoint3f &pos);
00044   void set_global_mat(const LMatrix4f &mat);
00045   void set_global_hpr(float h, float p, float r);
00046   void set_body(PhysxBodyDesc &desc);
00047 
00048   const char *get_name() const;
00049   float get_density() const;
00050   LPoint3f get_global_pos() const;
00051   LMatrix4f get_global_mat() const;
00052   PhysxBodyDesc get_body() const;
00053 
00054 public:
00055   NxActorDesc _desc;
00056 
00057 private:
00058   string _name;
00059 };
00060 
00061 #include "physxActorDesc.I"
00062 
00063 #endif // PHYSXACTORDESC_H
 All Classes Functions Variables Enumerations