Panda3D

physxSpringDesc.cxx

00001 // Filename: physxSpringDesc.cxx
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 #include "physxSpringDesc.h"
00016 
00017 ////////////////////////////////////////////////////////////////////
00018 //     Function: PhysxSpringDesc::set_spring
00019 //       Access: Published
00020 //  Description: 
00021 ////////////////////////////////////////////////////////////////////
00022 void PhysxSpringDesc::
00023 set_spring(float spring) {
00024 
00025   _desc.spring = spring;
00026 }
00027 
00028 ////////////////////////////////////////////////////////////////////
00029 //     Function: PhysxSpringDesc::set_damper
00030 //       Access: Published
00031 //  Description: 
00032 ////////////////////////////////////////////////////////////////////
00033 void PhysxSpringDesc::
00034 set_damper(float damper) {
00035 
00036   _desc.damper = damper;
00037 }
00038 
00039 ////////////////////////////////////////////////////////////////////
00040 //     Function: PhysxSpringDesc::set_target_value
00041 //       Access: Published
00042 //  Description: 
00043 ////////////////////////////////////////////////////////////////////
00044 void PhysxSpringDesc::
00045 set_target_value(float targetValue) {
00046 
00047   _desc.targetValue = targetValue;
00048 }
00049 
00050 ////////////////////////////////////////////////////////////////////
00051 //     Function: PhysxSpringDesc::get_spring
00052 //       Access: Published
00053 //  Description: 
00054 ////////////////////////////////////////////////////////////////////
00055 float PhysxSpringDesc::
00056 get_spring() const {
00057 
00058   return _desc.spring;
00059 }
00060 
00061 ////////////////////////////////////////////////////////////////////
00062 //     Function: PhysxSpringDesc::get_damper
00063 //       Access: Published
00064 //  Description: 
00065 ////////////////////////////////////////////////////////////////////
00066 float PhysxSpringDesc::
00067 get_damper() const {
00068 
00069   return _desc.damper;
00070 }
00071 
00072 ////////////////////////////////////////////////////////////////////
00073 //     Function: PhysxSpringDesc::get_target_value
00074 //       Access: Published
00075 //  Description: 
00076 ////////////////////////////////////////////////////////////////////
00077 float PhysxSpringDesc::
00078 get_target_value() const {
00079 
00080   return _desc.targetValue;
00081 }
00082 
 All Classes Functions Variables Enumerations