Skip to content

Commit 5cb4ed6

Browse files
author
Benoit Hudson
committed
ut-511: merge requirement: update the fbxsdk for the constraints
1 parent 6711206 commit 5cb4ed6

File tree

2 files changed

+34
-6
lines changed

2 files changed

+34
-6
lines changed

Packages/com.unity.formats.fbxsdk/Scripts/FbxConstraintParent.cs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,28 @@ public FbxPropertyBool AffectScalingZ {
101101
}
102102
}
103103

104+
public void SetTranslationOffset(FbxObject pObject, FbxVector4 pTranslation) {
105+
GlobalsPINVOKE.FbxConstraintParent_SetTranslationOffset(swigCPtr, FbxObject.getCPtr(pObject), pTranslation);
106+
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
107+
}
108+
109+
public FbxVector4 GetTranslationOffset(FbxObject pObject) {
110+
var ret = GlobalsPINVOKE.FbxConstraintParent_GetTranslationOffset(swigCPtr, FbxObject.getCPtr(pObject));
111+
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
112+
return ret;
113+
}
114+
115+
public virtual void SetRotationOffset(FbxObject pObject, FbxVector4 pRotation) {
116+
GlobalsPINVOKE.FbxConstraintParent_SetRotationOffset(swigCPtr, FbxObject.getCPtr(pObject), pRotation);
117+
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
118+
}
119+
120+
public FbxVector4 GetRotationOffset(FbxObject pObject) {
121+
var ret = GlobalsPINVOKE.FbxConstraintParent_GetRotationOffset(swigCPtr, FbxObject.getCPtr(pObject));
122+
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
123+
return ret;
124+
}
125+
104126
public void AddConstraintSource(FbxObject pObject, double pWeight) {
105127
GlobalsPINVOKE.FbxConstraintParent_AddConstraintSource__SWIG_0(swigCPtr, FbxObject.getCPtr(pObject), pWeight);
106128
if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();

Packages/com.unity.formats.fbxsdk/Scripts/GlobalsPINVOKE.cs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
// Converted DllImport statements using /Users/bhudson/projects/FbxSharp/scripts/replace-dllimport.py on Sat Apr 28 12:46:28 2018
2-
3-
// Converted DllImport statements using /Users/bhudson/projects/FbxSharp/scripts/replace-dllimport.py on Sat Apr 28 12:16:53 2018
4-
5-
// Converted DllImport statements using /Users/bhudson/projects/FbxSharp/scripts/replace-dllimport.py on Sat Apr 28 12:13:42 2018
6-
71
//------------------------------------------------------------------------------
82
// <auto-generated />
93
//
@@ -4042,6 +4036,18 @@ private static int InitFbxAllocators()
40424036
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxConstraintParent_AffectScalingZ_get___")]
40434037
public static extern global::System.IntPtr FbxConstraintParent_AffectScalingZ_get(global::System.Runtime.InteropServices.HandleRef jarg1);
40444038

4039+
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxConstraintParent_SetTranslationOffset___")]
4040+
public static extern void FbxConstraintParent_SetTranslationOffset(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, FbxVector4 jarg3);
4041+
4042+
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxConstraintParent_GetTranslationOffset___")]
4043+
public static extern FbxVector4 FbxConstraintParent_GetTranslationOffset(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
4044+
4045+
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxConstraintParent_SetRotationOffset___")]
4046+
public static extern void FbxConstraintParent_SetRotationOffset(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, FbxVector4 jarg3);
4047+
4048+
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxConstraintParent_GetRotationOffset___")]
4049+
public static extern FbxVector4 FbxConstraintParent_GetRotationOffset(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
4050+
40454051
[global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_UnityfFbxSdk_FbxConstraintParent_AddConstraintSource__SWIG_0___")]
40464052
public static extern void FbxConstraintParent_AddConstraintSource__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3);
40474053

0 commit comments

Comments
 (0)