physicsCollisionHandler.I 1.0 KB

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