Panda3D

physxMotorDesc.cxx

00001 // Filename: physxMotorDesc.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 "physxMotorDesc.h"
00016 
00017 ////////////////////////////////////////////////////////////////////
00018 //     Function: PhysxMotorDesc::set_vel_target
00019 //       Access: Published
00020 //  Description: 
00021 ////////////////////////////////////////////////////////////////////
00022 void PhysxMotorDesc::
00023 set_vel_target(float velTarget) {
00024 
00025   _desc.velTarget = velTarget;
00026 }
00027 
00028 ////////////////////////////////////////////////////////////////////
00029 //     Function: PhysxMotorDesc::set_max_force
00030 //       Access: Published
00031 //  Description: 
00032 ////////////////////////////////////////////////////////////////////
00033 void PhysxMotorDesc::
00034 set_max_force(float maxForce) {
00035 
00036   _desc.maxForce = maxForce;
00037 }
00038 
00039 ////////////////////////////////////////////////////////////////////
00040 //     Function: PhysxMotorDesc::set_free_spin
00041 //       Access: Published
00042 //  Description: 
00043 ////////////////////////////////////////////////////////////////////
00044 void PhysxMotorDesc::
00045 set_free_spin(bool freeSpin) {
00046 
00047   _desc.freeSpin = (NX_BOOL)freeSpin;
00048 }
00049 
00050 ////////////////////////////////////////////////////////////////////
00051 //     Function: PhysxMotorDesc::get_vel_target
00052 //       Access: Published
00053 //  Description: 
00054 ////////////////////////////////////////////////////////////////////
00055 float PhysxMotorDesc::
00056 get_vel_target() const {
00057 
00058   return _desc.velTarget;
00059 }
00060 
00061 ////////////////////////////////////////////////////////////////////
00062 //     Function: PhysxMotorDesc::get_max_force
00063 //       Access: Published
00064 //  Description: 
00065 ////////////////////////////////////////////////////////////////////
00066 float PhysxMotorDesc::
00067 get_max_force() const {
00068 
00069   return _desc.maxForce;
00070 }
00071 
00072 ////////////////////////////////////////////////////////////////////
00073 //     Function: PhysxMotorDesc::get_free_spin
00074 //       Access: Published
00075 //  Description: 
00076 ////////////////////////////////////////////////////////////////////
00077 bool PhysxMotorDesc::
00078 get_free_spin() const {
00079 
00080   return (_desc.freeSpin) ? true : false;
00081 }
00082 
 All Classes Functions Variables Enumerations