open_toontown_panda3d/panda/src/physx/physxJointDriveDesc.I

75 lines
2.3 KiB
Plaintext

// Filename: physxJointDriveDesc.I
// Created by: pratt (Jun 20, 2006)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should have received a copy of this license along
// with this source code in a file named "LICENSE."
//
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Function : get_damping
// Access : Published
// Description :
////////////////////////////////////////////////////////////////////
INLINE float PhysxJointDriveDesc::
get_damping() const {
return nJointDriveDesc.damping;
}
////////////////////////////////////////////////////////////////////
// Function : get_force_limit
// Access : Published
// Description :
////////////////////////////////////////////////////////////////////
INLINE float PhysxJointDriveDesc::
get_force_limit() const {
return nJointDriveDesc.forceLimit;
}
////////////////////////////////////////////////////////////////////
// Function : get_spring
// Access : Published
// Description :
////////////////////////////////////////////////////////////////////
INLINE float PhysxJointDriveDesc::
get_spring() const {
return nJointDriveDesc.spring;
}
////////////////////////////////////////////////////////////////////
// Function : set_damping
// Access : Published
// Description :
////////////////////////////////////////////////////////////////////
INLINE void PhysxJointDriveDesc::
set_damping(float value) {
nJointDriveDesc.damping = value;
}
////////////////////////////////////////////////////////////////////
// Function : set_force_limit
// Access : Published
// Description :
////////////////////////////////////////////////////////////////////
INLINE void PhysxJointDriveDesc::
set_force_limit(float value) {
nJointDriveDesc.forceLimit = value;
}
////////////////////////////////////////////////////////////////////
// Function : set_spring
// Access : Published
// Description :
////////////////////////////////////////////////////////////////////
INLINE void PhysxJointDriveDesc::
set_spring(float value) {
nJointDriveDesc.spring = value;
}