BsCFixedJoint.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. /** @cond INTERNAL */
  22. /** Returns the fixed joint that this component wraps. */
  23. FixedJoint* _getInternal() const { return static_cast<FixedJoint*>(mInternal.get()); }
  24. /** @endcond */
  25. /************************************************************************/
  26. /* COMPONENT OVERRIDES */
  27. /************************************************************************/
  28. protected:
  29. friend class SceneObject;
  30. /** @copydoc CJoint::createInternal */
  31. SPtr<Joint> createInternal() override;
  32. /************************************************************************/
  33. /* RTTI */
  34. /************************************************************************/
  35. public:
  36. friend class CFixedJointRTTI;
  37. static RTTITypeBase* getRTTIStatic();
  38. RTTITypeBase* getRTTI() const override;
  39. protected:
  40. CFixedJoint() {} // Serialization only
  41. };
  42. /** @} */
  43. }