BsCFixedJoint.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsCorePrerequisites.h"
  5. #include "BsFixedJoint.h"
  6. #include "BsCJoint.h"
  7. namespace BansheeEngine
  8. {
  9. /** @addtogroup Components-Core
  10. * @{
  11. */
  12. /**
  13. * @copydoc FixedJoint
  14. *
  15. * Wraps FixedJoint as a Component.
  16. */
  17. class BS_CORE_EXPORT CFixedJoint : public CJoint
  18. {
  19. public:
  20. CFixedJoint(const HSceneObject& parent);
  21. /** @name Internal
  22. * @{
  23. */
  24. /** Returns the fixed joint that this component wraps. */
  25. FixedJoint* _getInternal() const { return static_cast<FixedJoint*>(mInternal.get()); }
  26. /** @} */
  27. /************************************************************************/
  28. /* COMPONENT OVERRIDES */
  29. /************************************************************************/
  30. protected:
  31. friend class SceneObject;
  32. /** @copydoc CJoint::createInternal */
  33. SPtr<Joint> createInternal() override;
  34. /************************************************************************/
  35. /* RTTI */
  36. /************************************************************************/
  37. public:
  38. friend class CFixedJointRTTI;
  39. static RTTITypeBase* getRTTIStatic();
  40. RTTITypeBase* getRTTI() const override;
  41. protected:
  42. CFixedJoint() {} // Serialization only
  43. };
  44. /** @} */
  45. }