physicsCollisionHandler.I 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Filename: physicsCollisionHandler.I
  2. // Created by: drose (16Mar02)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) Carnegie Mellon University. All rights reserved.
  8. //
  9. // All use of this software is subject to the terms of the revised BSD
  10. // license. You should have received a copy of this license along
  11. // with this source code in a file named "LICENSE."
  12. //
  13. ////////////////////////////////////////////////////////////////////
  14. INLINE void PhysicsCollisionHandler::
  15. set_almost_stationary_speed(float speed) {
  16. _almost_stationary_speed = speed;
  17. }
  18. INLINE float PhysicsCollisionHandler::
  19. get_almost_stationary_speed() {
  20. return _almost_stationary_speed;
  21. }
  22. INLINE void PhysicsCollisionHandler::
  23. set_static_friction_coef(float coef) {
  24. _static_friction_coef = coef;
  25. }
  26. INLINE float PhysicsCollisionHandler::
  27. get_static_friction_coef() {
  28. return _static_friction_coef;
  29. }
  30. INLINE void PhysicsCollisionHandler::
  31. set_dynamic_friction_coef(float coef) {
  32. _dynamic_friction_coef = coef;
  33. }
  34. INLINE float PhysicsCollisionHandler::
  35. get_dynamic_friction_coef() {
  36. return _dynamic_friction_coef;
  37. }