| 12345678910111213141516171819202122232425262728293031323334353637 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #include "BsCFixedJoint.h"
- #include "BsSceneObject.h"
- #include "BsCRigidbody.h"
- #include "BsCFixedJointRTTI.h"
- namespace BansheeEngine
- {
- CFixedJoint::CFixedJoint()
- :CJoint(mDesc)
- { }
- CFixedJoint::CFixedJoint(const HSceneObject& parent)
- : CJoint(parent, mDesc)
- {
- setName("FixedJoint");
- }
- SPtr<Joint> CFixedJoint::createInternal()
- {
- SPtr<Joint> joint = FixedJoint::create(mDesc);
- joint->_setOwner(PhysicsOwnerType::Component, this);
- return joint;
- }
- RTTITypeBase* CFixedJoint::getRTTIStatic()
- {
- return CFixedJointRTTI::instance();
- }
- RTTITypeBase* CFixedJoint::getRTTI() const
- {
- return CFixedJoint::getRTTIStatic();
- }
- }
|