Exemplo n.º 1
0
        public static IIGameMorpher AsGameMorpher(this IIGameModifier obj)
        {
            var type        = GetWrappersAssembly().GetType("Autodesk.Max.Wrappers.IGameMorpher");
            var constructor = type.GetConstructors()[0];

            return((IIGameMorpher)constructor.Invoke(new object[] { obj.GetNativeHandle(), false }));
        }
Exemplo n.º 2
0
        public static IIGameMorpher AsGameMorpher(this IIGameModifier obj)
        {
            var type        = GetWrappersAssembly().GetType("Autodesk.Max.Wrappers.IGameMorpher");
            var constructor = type.GetConstructors()[0];

            // var pointerType = GetWrappersAssembly().GetType("IGameCamera");
            unsafe
            {
                var voidPtr = obj.GetNativeHandle().ToPointer();
                return((IIGameMorpher)constructor.Invoke(new object[] { obj.GetNativeHandle(), false }));
            }
        }