52 lines
1.5 KiB
Plaintext
52 lines
1.5 KiB
Plaintext
// Filename: linearForce.I
|
|
// Created by: charles (13Jun00)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : set_amplitude
|
|
// Access : Public
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void LinearForce::
|
|
set_amplitude(float a) {
|
|
_amplitude = a;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : get_amplitude
|
|
// Access : Public
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE float LinearForce::
|
|
get_amplitude(void) const {
|
|
return _amplitude;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : get_mass_dependent
|
|
// Access : Public
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE bool LinearForce::
|
|
get_mass_dependent(void) const {
|
|
return _mass_dependent;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : set_mass_Dependent
|
|
// Access : Public
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void LinearForce::
|
|
set_mass_dependent(bool m) {
|
|
_mass_dependent = m;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : set_vector_masks
|
|
// Access : Public
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void LinearForce::
|
|
set_vector_masks(bool x, bool y, bool z) {
|
|
_x_mask = x;
|
|
_y_mask = y;
|
|
_z_mask = z;
|
|
}
|