| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsCorePrerequisites.h"
- #include "Physics/BsFixedJoint.h"
- #include "Components/BsCJoint.h"
- #include "Physics/BsJoint.h"
- namespace bs
- {
- /** @addtogroup Components-Core
- * @{
- */
- /**
- * @copydoc FixedJoint
- *
- * @note Wraps FixedJoint as a Component.
- */
- class BS_CORE_EXPORT BS_SCRIPT_EXPORT(m:Physics,n:FixedJoint) CFixedJoint : public CJoint
- {
- public:
- CFixedJoint(const HSceneObject& parent);
- /** @name Internal
- * @{
- */
- /** Returns the fixed joint that this component wraps. */
- FixedJoint* _getInternal() const { return static_cast<FixedJoint*>(mInternal.get()); }
- /** @} */
- /************************************************************************/
- /* COMPONENT OVERRIDES */
- /************************************************************************/
- protected:
- friend class SceneObject;
- /** @copydoc CJoint::createInternal */
- SPtr<Joint> createInternal() override;
- /** @copydoc CJoint::getLocalTransform */
- void getLocalTransform(JointBody body, Vector3& position, Quaternion& rotation) override;
- FIXED_JOINT_DESC mDesc;
- /************************************************************************/
- /* RTTI */
- /************************************************************************/
- public:
- friend class CFixedJointRTTI;
- static RTTITypeBase* getRTTIStatic();
- RTTITypeBase* getRTTI() const override;
- protected:
- CFixedJoint(); // Serialization only
- };
- /** @} */
- }
|