linearForce.I 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // Filename: linearForce.I
  2. // Created by: charles (13Jun00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. ////////////////////////////////////////////////////////////////////
  19. // Function : set_amplitude
  20. // Access : Public
  21. ////////////////////////////////////////////////////////////////////
  22. INLINE void LinearForce::
  23. set_amplitude(float a) {
  24. _amplitude = a;
  25. }
  26. ////////////////////////////////////////////////////////////////////
  27. // Function : get_amplitude
  28. // Access : Public
  29. ////////////////////////////////////////////////////////////////////
  30. INLINE float LinearForce::
  31. get_amplitude(void) const {
  32. return _amplitude;
  33. }
  34. ////////////////////////////////////////////////////////////////////
  35. // Function : get_mass_dependent
  36. // Access : Public
  37. ////////////////////////////////////////////////////////////////////
  38. INLINE bool LinearForce::
  39. get_mass_dependent(void) const {
  40. return _mass_dependent;
  41. }
  42. ////////////////////////////////////////////////////////////////////
  43. // Function : set_mass_Dependent
  44. // Access : Public
  45. ////////////////////////////////////////////////////////////////////
  46. INLINE void LinearForce::
  47. set_mass_dependent(bool m) {
  48. _mass_dependent = m;
  49. }
  50. ////////////////////////////////////////////////////////////////////
  51. // Function : set_vector_masks
  52. // Access : Public
  53. ////////////////////////////////////////////////////////////////////
  54. INLINE void LinearForce::
  55. set_vector_masks(bool x, bool y, bool z) {
  56. _x_mask = x;
  57. _y_mask = y;
  58. _z_mask = z;
  59. }