BsScriptSphericalJoint.h 1.2 KB

1234567891011121314151617181920212223242526272829
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsScriptEnginePrerequisites.h"
  5. #include "BsScriptCollider.h"
  6. #include "BsScriptJoint.h"
  7. namespace BansheeEngine
  8. {
  9. /** Interop class between C++ & CLR for SphericalJoint. */
  10. class BS_SCR_BE_EXPORT ScriptSphericalJoint : public TScriptJoint<ScriptSphericalJoint>
  11. {
  12. public:
  13. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "NativeSphericalJoint")
  14. private:
  15. ScriptSphericalJoint(MonoObject* instance, const SPtr<Joint>& joint);
  16. /** Returns the native spherical joint wrapped by this object. */
  17. SphericalJoint* getSphericalJoint() const;
  18. /************************************************************************/
  19. /* CLR HOOKS */
  20. /************************************************************************/
  21. static void internal_CreateInstance(MonoObject* instance);
  22. static void internal_SetLimit(ScriptSphericalJoint* thisPtr, MonoObject* limit);
  23. static void internal_SetEnableLimit(ScriptSphericalJoint* thisPtr, bool enable);
  24. };
  25. }