| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- #include "BsScriptCD6Joint.generated.h"
- #include "BsMonoMethod.h"
- #include "BsMonoClass.h"
- #include "BsMonoUtil.h"
- #include "../../../bsf/Source/Foundation/bsfCore/Components/BsCD6Joint.h"
- #include "BsScriptD6JointDrive.generated.h"
- #include "Wrappers/BsScriptVector.h"
- #include "BsScriptLimitLinear.generated.h"
- #include "BsScriptLimitAngularRange.generated.h"
- #include "BsScriptLimitConeRange.generated.h"
- #include "Wrappers/BsScriptQuaternion.h"
- namespace bs
- {
- ScriptCD6Joint::ScriptCD6Joint(MonoObject* managedInstance, const GameObjectHandle<CD6Joint>& value)
- :TScriptComponent(managedInstance, value)
- {
- }
- void ScriptCD6Joint::initRuntimeData()
- {
- metaData.scriptClass->addInternalCall("Internal_getMotion", (void*)&ScriptCD6Joint::Internal_getMotion);
- metaData.scriptClass->addInternalCall("Internal_setMotion", (void*)&ScriptCD6Joint::Internal_setMotion);
- metaData.scriptClass->addInternalCall("Internal_getTwist", (void*)&ScriptCD6Joint::Internal_getTwist);
- metaData.scriptClass->addInternalCall("Internal_getSwingY", (void*)&ScriptCD6Joint::Internal_getSwingY);
- metaData.scriptClass->addInternalCall("Internal_getSwingZ", (void*)&ScriptCD6Joint::Internal_getSwingZ);
- metaData.scriptClass->addInternalCall("Internal_getLimitLinear", (void*)&ScriptCD6Joint::Internal_getLimitLinear);
- metaData.scriptClass->addInternalCall("Internal_setLimitLinear", (void*)&ScriptCD6Joint::Internal_setLimitLinear);
- metaData.scriptClass->addInternalCall("Internal_getLimitTwist", (void*)&ScriptCD6Joint::Internal_getLimitTwist);
- metaData.scriptClass->addInternalCall("Internal_setLimitTwist", (void*)&ScriptCD6Joint::Internal_setLimitTwist);
- metaData.scriptClass->addInternalCall("Internal_getLimitSwing", (void*)&ScriptCD6Joint::Internal_getLimitSwing);
- metaData.scriptClass->addInternalCall("Internal_setLimitSwing", (void*)&ScriptCD6Joint::Internal_setLimitSwing);
- metaData.scriptClass->addInternalCall("Internal_getDrive", (void*)&ScriptCD6Joint::Internal_getDrive);
- metaData.scriptClass->addInternalCall("Internal_setDrive", (void*)&ScriptCD6Joint::Internal_setDrive);
- metaData.scriptClass->addInternalCall("Internal_getDrivePosition", (void*)&ScriptCD6Joint::Internal_getDrivePosition);
- metaData.scriptClass->addInternalCall("Internal_getDriveRotation", (void*)&ScriptCD6Joint::Internal_getDriveRotation);
- metaData.scriptClass->addInternalCall("Internal_setDriveTransform", (void*)&ScriptCD6Joint::Internal_setDriveTransform);
- metaData.scriptClass->addInternalCall("Internal_getDriveLinearVelocity", (void*)&ScriptCD6Joint::Internal_getDriveLinearVelocity);
- metaData.scriptClass->addInternalCall("Internal_getDriveAngularVelocity", (void*)&ScriptCD6Joint::Internal_getDriveAngularVelocity);
- metaData.scriptClass->addInternalCall("Internal_setDriveVelocity", (void*)&ScriptCD6Joint::Internal_setDriveVelocity);
- }
- D6JointMotion ScriptCD6Joint::Internal_getMotion(ScriptCD6Joint* thisPtr, D6JointAxis axis)
- {
- D6JointMotion tmp__output;
- tmp__output = thisPtr->getHandle()->getMotion(axis);
- D6JointMotion __output;
- __output = tmp__output;
- return __output;
- }
- void ScriptCD6Joint::Internal_setMotion(ScriptCD6Joint* thisPtr, D6JointAxis axis, D6JointMotion motion)
- {
- thisPtr->getHandle()->setMotion(axis, motion);
- }
- void ScriptCD6Joint::Internal_getTwist(ScriptCD6Joint* thisPtr, Radian* __output)
- {
- Radian tmp__output;
- tmp__output = thisPtr->getHandle()->getTwist();
- *__output = tmp__output;
- }
- void ScriptCD6Joint::Internal_getSwingY(ScriptCD6Joint* thisPtr, Radian* __output)
- {
- Radian tmp__output;
- tmp__output = thisPtr->getHandle()->getSwingY();
- *__output = tmp__output;
- }
- void ScriptCD6Joint::Internal_getSwingZ(ScriptCD6Joint* thisPtr, Radian* __output)
- {
- Radian tmp__output;
- tmp__output = thisPtr->getHandle()->getSwingZ();
- *__output = tmp__output;
- }
- void ScriptCD6Joint::Internal_getLimitLinear(ScriptCD6Joint* thisPtr, __LimitLinearInterop* __output)
- {
- LimitLinear tmp__output;
- tmp__output = thisPtr->getHandle()->getLimitLinear();
- __LimitLinearInterop interop__output;
- interop__output = ScriptLimitLinear::toInterop(tmp__output);
- MonoUtil::valueCopy(__output, &interop__output, ScriptLimitLinear::getMetaData()->scriptClass->_getInternalClass());
- }
- void ScriptCD6Joint::Internal_setLimitLinear(ScriptCD6Joint* thisPtr, __LimitLinearInterop* limit)
- {
- LimitLinear tmplimit;
- tmplimit = ScriptLimitLinear::fromInterop(*limit);
- thisPtr->getHandle()->setLimitLinear(tmplimit);
- }
- void ScriptCD6Joint::Internal_getLimitTwist(ScriptCD6Joint* thisPtr, __LimitAngularRangeInterop* __output)
- {
- LimitAngularRange tmp__output;
- tmp__output = thisPtr->getHandle()->getLimitTwist();
- __LimitAngularRangeInterop interop__output;
- interop__output = ScriptLimitAngularRange::toInterop(tmp__output);
- MonoUtil::valueCopy(__output, &interop__output, ScriptLimitAngularRange::getMetaData()->scriptClass->_getInternalClass());
- }
- void ScriptCD6Joint::Internal_setLimitTwist(ScriptCD6Joint* thisPtr, __LimitAngularRangeInterop* limit)
- {
- LimitAngularRange tmplimit;
- tmplimit = ScriptLimitAngularRange::fromInterop(*limit);
- thisPtr->getHandle()->setLimitTwist(tmplimit);
- }
- void ScriptCD6Joint::Internal_getLimitSwing(ScriptCD6Joint* thisPtr, __LimitConeRangeInterop* __output)
- {
- LimitConeRange tmp__output;
- tmp__output = thisPtr->getHandle()->getLimitSwing();
- __LimitConeRangeInterop interop__output;
- interop__output = ScriptLimitConeRange::toInterop(tmp__output);
- MonoUtil::valueCopy(__output, &interop__output, ScriptLimitConeRange::getMetaData()->scriptClass->_getInternalClass());
- }
- void ScriptCD6Joint::Internal_setLimitSwing(ScriptCD6Joint* thisPtr, __LimitConeRangeInterop* limit)
- {
- LimitConeRange tmplimit;
- tmplimit = ScriptLimitConeRange::fromInterop(*limit);
- thisPtr->getHandle()->setLimitSwing(tmplimit);
- }
- void ScriptCD6Joint::Internal_getDrive(ScriptCD6Joint* thisPtr, D6JointDriveType type, D6JointDrive* __output)
- {
- D6JointDrive tmp__output;
- tmp__output = thisPtr->getHandle()->getDrive(type);
- *__output = tmp__output;
- }
- void ScriptCD6Joint::Internal_setDrive(ScriptCD6Joint* thisPtr, D6JointDriveType type, D6JointDrive* drive)
- {
- thisPtr->getHandle()->setDrive(type, *drive);
- }
- void ScriptCD6Joint::Internal_getDrivePosition(ScriptCD6Joint* thisPtr, Vector3* __output)
- {
- Vector3 tmp__output;
- tmp__output = thisPtr->getHandle()->getDrivePosition();
- *__output = tmp__output;
- }
- void ScriptCD6Joint::Internal_getDriveRotation(ScriptCD6Joint* thisPtr, Quaternion* __output)
- {
- Quaternion tmp__output;
- tmp__output = thisPtr->getHandle()->getDriveRotation();
- *__output = tmp__output;
- }
- void ScriptCD6Joint::Internal_setDriveTransform(ScriptCD6Joint* thisPtr, Vector3* position, Quaternion* rotation)
- {
- thisPtr->getHandle()->setDriveTransform(*position, *rotation);
- }
- void ScriptCD6Joint::Internal_getDriveLinearVelocity(ScriptCD6Joint* thisPtr, Vector3* __output)
- {
- Vector3 tmp__output;
- tmp__output = thisPtr->getHandle()->getDriveLinearVelocity();
- *__output = tmp__output;
- }
- void ScriptCD6Joint::Internal_getDriveAngularVelocity(ScriptCD6Joint* thisPtr, Vector3* __output)
- {
- Vector3 tmp__output;
- tmp__output = thisPtr->getHandle()->getDriveAngularVelocity();
- *__output = tmp__output;
- }
- void ScriptCD6Joint::Internal_setDriveVelocity(ScriptCD6Joint* thisPtr, Vector3* linear, Vector3* angular)
- {
- thisPtr->getHandle()->setDriveVelocity(*linear, *angular);
- }
- }
|