Panda3D
 All Classes Functions Variables Enumerations
physxJointDriveDesc.h
00001 // Filename: physxJointDriveDesc.h
00002 // Created by:  enn0x (01Oct09)
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 PHYSXJOINTDRIVEDESC_H
00016 #define PHYSXJOINTDRIVEDESC_H
00017 
00018 #include "pandabase.h"
00019 
00020 #include "physxEnums.h"
00021 #include "physx_includes.h"
00022 
00023 ////////////////////////////////////////////////////////////////////
00024 //       Class : PhysxJointDriveDesc
00025 // Description : Used to describe drive properties for a
00026 //               PhysxD6Joint.
00027 ////////////////////////////////////////////////////////////////////
00028 class PhysxJointDriveDesc : public PhysxEnums {
00029 
00030 PUBLISHED:
00031   INLINE PhysxJointDriveDesc();
00032   INLINE PhysxJointDriveDesc(float sping, float damping, float forceLimit);
00033   INLINE ~PhysxJointDriveDesc();
00034 
00035   void set_drive_type(PhysxD6JointDriveType type);
00036   void set_spring(float spring);
00037   void set_damping(float damping);
00038   void set_force_limit(float limit);
00039 
00040   PhysxD6JointDriveType get_drive_type() const;
00041   float get_spring() const;
00042   float get_damping() const;
00043   float get_force_limit() const;
00044 
00045 public:
00046   NxJointDriveDesc _desc;
00047 };
00048 
00049 #include "physxJointDriveDesc.I"
00050 
00051 #endif // PHYSXJOINTDRIVEDESC_H
 All Classes Functions Variables Enumerations