BsJoint.cpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #include "BsJoint.h"
  4. namespace BansheeEngine
  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::setBreakToque(float torque)
  39. {
  40. mInternal->setBreakToque(torque);
  41. }
  42. }