Panda3D

physxJointLimitSoftDesc.h

00001 // Filename: physxJointLimitSoftDesc.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 PHYSXJOINTLIMITSOFTDESC_H
00016 #define PHYSXJOINTLIMITSOFTDESC_H
00017 
00018 #include "pandabase.h"
00019 
00020 #include "physx_includes.h"
00021 
00022 ////////////////////////////////////////////////////////////////////
00023 //       Class : PhysxJointLimitSoftDesc
00024 // Description : Describes a joint limit.
00025 ////////////////////////////////////////////////////////////////////
00026 class PhysxJointLimitSoftDesc {
00027 
00028 PUBLISHED:
00029   INLINE PhysxJointLimitSoftDesc();
00030   INLINE PhysxJointLimitSoftDesc(float value, float restitution, float spring, float damping);
00031   INLINE ~PhysxJointLimitSoftDesc();
00032 
00033   void set_value(float value);
00034   void set_restitution(float restitution);
00035   void set_spring(float spring);
00036   void set_damping(float damping);
00037 
00038   float get_value() const;
00039   float get_restitution() const;
00040   float get_spring() const;
00041   float get_damping() const;
00042 
00043 public:
00044   NxJointLimitSoftDesc _desc;
00045 };
00046 
00047 #include "physxJointLimitSoftDesc.I"
00048 
00049 #endif // PHYSXJOINTLIMITSOFTDESC_H
 All Classes Functions Variables Enumerations