Panda3D
 All Classes Functions Variables Enumerations
physxSpringDesc.h
00001 // Filename: physxSpringDesc.h
00002 // Created by:  enn0x (28Sep09)
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 PHYSXSPRINGDESC_H
00016 #define PHYSXSPRINGDESC_H
00017 
00018 #include "pandabase.h"
00019 
00020 #include "physx_includes.h"
00021 
00022 ////////////////////////////////////////////////////////////////////
00023 //       Class : PhysxSpringDesc
00024 // Description : Describes a joint spring. The spring is implicitly
00025 //               integrated, so even high spring and damper
00026 //               coefficients should be robust.
00027 ////////////////////////////////////////////////////////////////////
00028 class PhysxSpringDesc {
00029 
00030 PUBLISHED:
00031   INLINE PhysxSpringDesc();
00032   INLINE PhysxSpringDesc(float spring, float damper=0, float targetValue=0);
00033   INLINE ~PhysxSpringDesc();
00034 
00035   void set_spring(float spring);
00036   void set_damper(float damper);
00037   void set_target_value(float target);
00038 
00039   float get_spring() const;
00040   float get_damper() const;
00041   float get_target_value() const;
00042 
00043 public:
00044   NxSpringDesc _desc;
00045 };
00046 
00047 #include "physxSpringDesc.I"
00048 
00049 #endif // PHYSXSPRINGDESC_H
 All Classes Functions Variables Enumerations