BsJoint.cpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #include "Physics/BsJoint.h"
  4. namespace bs
  5. {
  6. Rigidbody* Joint::getBody(JointBody body) const
  7. {
  8. return mInternal->getBody(body);
  9. }
  10. void Joint::setBody(JointBody body, Rigidbody* value)
  11. {
  12. mInternal->setBody(body, value);
  13. }
  14. Vector3 Joint::getPosition(JointBody body) const
  15. {
  16. return mInternal->getPosition(body);
  17. }
  18. Quaternion Joint::getRotation(JointBody body) const
  19. {
  20. return mInternal->getRotation(body);
  21. }
  22. void Joint::setTransform(JointBody body, const Vector3& position, const Quaternion& rotation)
  23. {
  24. mInternal->setTransform(body, position, rotation);
  25. }
  26. float Joint::getBreakForce() const
  27. {
  28. return mInternal->getBreakForce();
  29. }
  30. void Joint::setBreakForce(float force)
  31. {
  32. mInternal->setBreakForce(force);
  33. }
  34. float Joint::getBreakTorque() const
  35. {
  36. return mInternal->getBreakTorque();
  37. }
  38. void Joint::setBreakTorque(float torque)
  39. {
  40. mInternal->setBreakTorque(torque);
  41. }
  42. bool Joint::getEnableCollision() const
  43. {
  44. return mInternal->getEnableCollision();
  45. }
  46. void Joint::setEnableCollision(bool value)
  47. {
  48. mInternal->setEnableCollision(value);
  49. }
  50. }