Exemplo n.º 1
0
        static void SetWorldTransformUnmanaged(IntPtr msPtr, ref Matrix worldTrans)
        {
            //UnityEngine.Debug.Log("Set" + msPtr.ToInt64());
            MotionState ms = GCHandle.FromIntPtr(msPtr).Target as MotionState;

            ms.SetWorldTransform(ref worldTrans);
        }
 public unsafe static void SetWorldTransform(this MotionState obj, ref Matrix4 transform)
 {
     fixed(Matrix4 *value = &transform)
     {
         obj.SetWorldTransform(ref *(Matrix *)value);
     }
 }