BsCFixedJoint.cpp 870 B

123456789101112131415161718192021222324252627282930313233
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #include "BsCFixedJoint.h"
  4. #include "BsSceneObject.h"
  5. #include "BsCRigidbody.h"
  6. #include "BsCFixedJointRTTI.h"
  7. namespace BansheeEngine
  8. {
  9. CFixedJoint::CFixedJoint(const HSceneObject& parent)
  10. : CJoint(parent)
  11. {
  12. setName("FixedJoint");
  13. }
  14. SPtr<Joint> CFixedJoint::createInternal()
  15. {
  16. SPtr<Joint> joint = FixedJoint::create();
  17. joint->_setOwner(PhysicsOwnerType::Component, this);
  18. return joint;
  19. }
  20. RTTITypeBase* CFixedJoint::getRTTIStatic()
  21. {
  22. return CFixedJointRTTI::instance();
  23. }
  24. RTTITypeBase* CFixedJoint::getRTTI() const
  25. {
  26. return CFixedJoint::getRTTIStatic();
  27. }
  28. }