Beispiel #1
0
            internal static void pushFront(IntPtr thisPtr, InternalTransformFStruct transform, float speed, [MarshalAs(UnmanagedType.LPWStr)] string type, [MarshalAs(UnmanagedType.LPWStr)] string path)
            {
                if (_pushFrontFunc == null)
                {
                    _pushFrontFunc =
                        (_pushFront)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                               "fn_PathCamera_pushFront"), typeof(_pushFront));
                }

                _pushFrontFunc(thisPtr, transform, speed, type, path);
            }
Beispiel #2
0
            internal static bool mountObject(IntPtr thisPtr, IntPtr objB, InternalTransformFStruct txfm)
            {
                if (_mountObjectFunc == null)
                {
                    _mountObjectFunc =
                        (_mountObject)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                 "fn_Entity_mountObject"), typeof(_mountObject));
                }

                return(_mountObjectFunc(thisPtr, objB, txfm));
            }
Beispiel #3
0
            internal static void setOrbitPoint(IntPtr thisPtr, InternalTransformFStruct orbitPoint, float minDistance, float maxDistance, float initDistance, InternalPoint3FStruct offset, bool locked)
            {
                if (_setOrbitPointFunc == null)
                {
                    _setOrbitPointFunc =
                        (_setOrbitPoint)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                   "fn_Camera_setOrbitPoint"), typeof(_setOrbitPoint));
                }

                _setOrbitPointFunc(thisPtr, orbitPoint, minDistance, maxDistance, initDistance, offset, locked);
            }
            internal static bool checkDeployPos(IntPtr thisPtr, InternalTransformFStruct txfm)
            {
                if (_checkDeployPosFunc == null)
                {
                    _checkDeployPosFunc =
                        (_checkDeployPos)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                    "fn_ShapeBaseData_checkDeployPos"), typeof(_checkDeployPos));
                }

                return(_checkDeployPosFunc(thisPtr, txfm));
            }
            internal static void setTransform(IntPtr thisPtr, InternalTransformFStruct txfm)
            {
                if (_setTransformFunc == null)
                {
                    _setTransformFunc =
                        (_setTransform)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                  "fn_SceneObject_setTransform"), typeof(_setTransform));
                }

                _setTransformFunc(thisPtr, txfm);
            }
            internal static bool mountObject(IntPtr thisPtr, IntPtr objB, [MarshalAs(UnmanagedType.LPWStr)] string node, InternalTransformFStruct txfm)
            {
                if (_mountObjectFunc == null)
                {
                    _mountObjectFunc =
                        (_mountObject)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                 "fn_MeshComponent_mountObject"), typeof(_mountObject));
                }

                return(_mountObjectFunc(thisPtr, objB, node, txfm));
            }