131 lines
2.8 KiB
Plaintext
Executable File
131 lines
2.8 KiB
Plaintext
Executable File
// Filename: odeSurfaceParameters.I
|
|
// Created by: joswilso (27Dec06)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
|
|
//
|
|
// All use of this software is subject to the terms of the Panda 3d
|
|
// Software license. You should have received a copy of this license
|
|
// along with this source code; you will also find a current copy of
|
|
// the license at http://etc.cmu.edu/panda3d/docs/license/ .
|
|
//
|
|
// To contact the maintainers of this program write to
|
|
// panda3d-general@lists.sourceforge.net .
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
INLINE void OdeSurfaceParameters::
|
|
set_mode(int mode) {
|
|
_surface_parameters.mode = mode;
|
|
}
|
|
|
|
INLINE void OdeSurfaceParameters::
|
|
set_mu(dReal mu) {
|
|
_surface_parameters.mu = mu;
|
|
}
|
|
|
|
INLINE void OdeSurfaceParameters::
|
|
set_mu2(dReal mu2) {
|
|
_surface_parameters.mu2 = mu2;
|
|
}
|
|
|
|
INLINE void OdeSurfaceParameters::
|
|
set_bounce(dReal bounce) {
|
|
_surface_parameters.bounce = bounce;
|
|
}
|
|
|
|
INLINE void OdeSurfaceParameters::
|
|
set_bounce_vel(dReal bounce_vel) {
|
|
_surface_parameters.bounce_vel = bounce_vel;
|
|
}
|
|
|
|
INLINE void OdeSurfaceParameters::
|
|
set_soft_erp(dReal soft_erp) {
|
|
_surface_parameters.soft_erp = soft_erp;
|
|
}
|
|
|
|
INLINE void OdeSurfaceParameters::
|
|
set_soft_cfm(dReal soft_cfm) {
|
|
_surface_parameters.soft_cfm = soft_cfm;
|
|
}
|
|
|
|
INLINE void OdeSurfaceParameters::
|
|
set_motion1(dReal motion) {
|
|
_surface_parameters.motion1 = motion;
|
|
}
|
|
|
|
INLINE void OdeSurfaceParameters::
|
|
set_motion2(dReal motion) {
|
|
_surface_parameters.motion2 = motion;
|
|
}
|
|
|
|
INLINE void OdeSurfaceParameters::
|
|
set_slip1(dReal slip) {
|
|
_surface_parameters.slip1 = slip;
|
|
}
|
|
|
|
INLINE void OdeSurfaceParameters::
|
|
set_slip2(dReal slip) {
|
|
_surface_parameters.slip2 = slip;
|
|
}
|
|
|
|
|
|
INLINE int OdeSurfaceParameters::
|
|
get_mode() const {
|
|
return _surface_parameters.mode;
|
|
}
|
|
|
|
INLINE dReal OdeSurfaceParameters::
|
|
get_mu() const {
|
|
return _surface_parameters.mu;
|
|
}
|
|
|
|
INLINE dReal OdeSurfaceParameters::
|
|
get_mu2() const {
|
|
return _surface_parameters.mu2;
|
|
}
|
|
|
|
INLINE dReal OdeSurfaceParameters::
|
|
get_bounce() const {
|
|
return _surface_parameters.bounce;
|
|
}
|
|
|
|
INLINE dReal OdeSurfaceParameters::
|
|
get_bounce_vel() const {
|
|
return _surface_parameters.bounce_vel;
|
|
}
|
|
|
|
INLINE dReal OdeSurfaceParameters::
|
|
get_soft_erp() const {
|
|
return _surface_parameters.soft_erp;
|
|
}
|
|
|
|
INLINE dReal OdeSurfaceParameters::
|
|
get_soft_cfm() const {
|
|
return _surface_parameters.soft_cfm;
|
|
}
|
|
|
|
INLINE dReal OdeSurfaceParameters::
|
|
get_motion1() const {
|
|
return _surface_parameters.motion1;
|
|
}
|
|
|
|
INLINE dReal OdeSurfaceParameters::
|
|
get_motion2() const {
|
|
return _surface_parameters.motion2;
|
|
}
|
|
|
|
INLINE dReal OdeSurfaceParameters::
|
|
get_slip1() const {
|
|
return _surface_parameters.slip1;
|
|
}
|
|
|
|
INLINE dReal OdeSurfaceParameters::
|
|
get_slip2() const {
|
|
return _surface_parameters.slip2;
|
|
}
|
|
|
|
|