| 123456789101112131415161718192021222324252627282930313233 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsScriptEnginePrerequisites.h"
- #include "BsScriptCollider.h"
- #include "BsScriptJoint.h"
- namespace BansheeEngine
- {
- /** Interop class between C++ & CLR for HingeJoint. */
- class BS_SCR_BE_EXPORT ScriptHingeJoint : public TScriptJoint<ScriptHingeJoint>
- {
- public:
- SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "NativeHingeJoint")
- private:
- ScriptHingeJoint(MonoObject* instance, const SPtr<Joint>& joint);
- /** Returns the native hinge joint wrapped by this object. */
- HingeJoint* getHingeJoint() const;
- /************************************************************************/
- /* CLR HOOKS */
- /************************************************************************/
- static void internal_CreateInstance(MonoObject* instance);
- static float internal_GetAngle(ScriptHingeJoint* thisPtr);
- static float internal_GetSpeed(ScriptHingeJoint* thisPtr);
- static void internal_SetLimit(ScriptHingeJoint* thisPtr, MonoObject* limit);
- static void internal_SetDrive(ScriptHingeJoint* thisPtr, MonoObject* drive);
- static void internal_SetEnableLimit(ScriptHingeJoint* thisPtr, bool value);
- static void internal_SetEnableDrive(ScriptHingeJoint* thisPtr, bool value);
- };
- }
|