Example #1
0
            internal static float getBestCollisionAngle(IntPtr thisPtr, InternalPoint3FStruct upVector)
            {
                if (_getBestCollisionAngleFunc == null)
                {
                    _getBestCollisionAngleFunc =
                        (_getBestCollisionAngle)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                           "fn_CollisionComponent_getBestCollisionAngle"), typeof(_getBestCollisionAngle));
                }

                return(_getBestCollisionAngleFunc(thisPtr, upVector));
            }
            internal static void setNodePosition(IntPtr thisPtr, InternalPoint3FStruct pos)
            {
                if (_setNodePositionFunc == null)
                {
                    _setNodePositionFunc =
                        (_setNodePosition)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                     "fn_GuiRoadEditorCtrl_setNodePosition"), typeof(_setNodePosition));
                }

                _setNodePositionFunc(thisPtr, pos);
            }
Example #3
0
            internal static void editDecalDetails(IntPtr thisPtr, uint id, InternalPoint3FStruct pos, InternalPoint3FStruct tan, float size)
            {
                if (_editDecalDetailsFunc == null)
                {
                    _editDecalDetailsFunc =
                        (_editDecalDetails)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                      "fn_GuiDecalEditorCtrl_editDecalDetails"), typeof(_editDecalDetails));
                }

                _editDecalDetailsFunc(thisPtr, id, pos, tan, size);
            }
Example #4
0
            internal static void attach(IntPtr thisPtr, InternalPoint3FStruct start, InternalPoint3FStruct direction, float maxDist)
            {
                if (_attachFunc == null)
                {
                    _attachFunc =
                        (_attach)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                            "fn_PhysicsForce_attach"), typeof(_attach));
                }

                _attachFunc(thisPtr, start, direction, maxDist);
            }
Example #5
0
            internal static void setTurretEulerRotation(IntPtr thisPtr, InternalPoint3FStruct rot)
            {
                if (_setTurretEulerRotationFunc == null)
                {
                    _setTurretEulerRotationFunc =
                        (_setTurretEulerRotation)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                            "fn_TurretShape_setTurretEulerRotation"), typeof(_setTurretEulerRotation));
                }

                _setTurretEulerRotationFunc(thisPtr, rot);
            }
Example #6
0
            internal static void lookAt(IntPtr thisPtr, InternalPoint3FStruct lookPosition)
            {
                if (_lookAtFunc == null)
                {
                    _lookAtFunc =
                        (_lookAt)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                            "fn_Entity_lookAt"), typeof(_lookAt));
                }

                _lookAtFunc(thisPtr, lookPosition);
            }
Example #7
0
            internal static void setMountOffset(IntPtr thisPtr, InternalPoint3FStruct posOffset)
            {
                if (_setMountOffsetFunc == null)
                {
                    _setMountOffsetFunc =
                        (_setMountOffset)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                    "fn_Entity_setMountOffset"), typeof(_setMountOffset));
                }

                _setMountOffsetFunc(thisPtr, posOffset);
            }
Example #8
0
            internal static int getLink(IntPtr thisPtr, InternalPoint3FStruct pos)
            {
                if (_getLinkFunc == null)
                {
                    _getLinkFunc =
                        (_getLink)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                             "fn_NavMesh_getLink"), typeof(_getLink));
                }

                return(_getLinkFunc(thisPtr, pos));
            }
Example #9
0
            internal static int findCover(IntPtr thisPtr, InternalPoint3FStruct from, float radius)
            {
                if (_findCoverFunc == null)
                {
                    _findCoverFunc =
                        (_findCover)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                               "fn_AIPlayer_findCover"), typeof(_findCover));
                }

                return(_findCoverFunc(thisPtr, from, radius));
            }
Example #10
0
            internal static void applyRadialImpulse(IntPtr thisPtr, InternalPoint3FStruct origin, float radius, float magnitude)
            {
                if (_applyRadialImpulseFunc == null)
                {
                    _applyRadialImpulseFunc =
                        (_applyRadialImpulse)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                        "fn_GameBase_applyRadialImpulse"), typeof(_applyRadialImpulse));
                }

                _applyRadialImpulseFunc(thisPtr, origin, radius, magnitude);
            }
Example #11
0
            internal static int addLink(IntPtr thisPtr, InternalPoint3FStruct from, InternalPoint3FStruct to, uint flags)
            {
                if (_addLinkFunc == null)
                {
                    _addLinkFunc =
                        (_addLink)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                             "fn_NavMesh_addLink"), typeof(_addLink));
                }

                return(_addLinkFunc(thisPtr, from, to, flags));
            }
Example #12
0
            internal static void setScale(IntPtr thisPtr, InternalPoint3FStruct scale)
            {
                if (_setScaleFunc == null)
                {
                    _setScaleFunc =
                        (_setScale)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                              "fn_SceneObject_setScale"), typeof(_setScale));
                }

                _setScaleFunc(thisPtr, scale);
            }
Example #13
0
            internal static bool checkDismountPoint(IntPtr thisPtr, InternalPoint3FStruct oldPos, InternalPoint3FStruct pos)
            {
                if (_checkDismountPointFunc == null)
                {
                    _checkDismountPointFunc =
                        (_checkDismountPoint)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                        "fn_Player_checkDismountPoint"), typeof(_checkDismountPoint));
                }

                return(_checkDismountPointFunc(thisPtr, oldPos, pos));
            }
Example #14
0
            internal static IntPtr getDamageLocation(IntPtr thisPtr, InternalPoint3FStruct pos)
            {
                if (_getDamageLocationFunc == null)
                {
                    _getDamageLocationFunc =
                        (_getDamageLocation)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                       "fn_Player_getDamageLocation"), typeof(_getDamageLocation));
                }

                return(_getDamageLocationFunc(thisPtr, pos));
            }
Example #15
0
            internal static void setEditOrbitPoint(IntPtr thisPtr, InternalPoint3FStruct point)
            {
                if (_setEditOrbitPointFunc == null)
                {
                    _setEditOrbitPointFunc =
                        (_setEditOrbitPoint)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                       "fn_Camera_setEditOrbitPoint"), typeof(_setEditOrbitPoint));
                }

                _setEditOrbitPointFunc(thisPtr, point);
            }
Example #16
0
            internal static bool setPathDestination(IntPtr thisPtr, InternalPoint3FStruct goal)
            {
                if (_setPathDestinationFunc == null)
                {
                    _setPathDestinationFunc =
                        (_setPathDestination)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                        "fn_AIPlayer_setPathDestination"), typeof(_setPathDestination));
                }

                return(_setPathDestinationFunc(thisPtr, goal));
            }
Example #17
0
            internal static void setBox(IntPtr thisPtr, InternalPoint3FStruct box)
            {
                if (_setBoxFunc == null)
                {
                    _setBoxFunc =
                        (_setBox)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                            "fn_Entity_setBox"), typeof(_setBox));
                }

                _setBoxFunc(thisPtr, box);
            }
            internal static bool applyImpulse(IntPtr thisPtr, InternalPoint3FStruct pos, InternalPoint3FStruct vel)
            {
                if (_applyImpulseFunc == null)
                {
                    _applyImpulseFunc =
                        (_applyImpulse)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                  "fn_PhysicsComponent_applyImpulse"), typeof(_applyImpulse));
                }

                return(_applyImpulseFunc(thisPtr, pos, vel));
            }
Example #19
0
            internal static void rotateTo(IntPtr thisPtr, InternalPoint3FStruct lookPosition, float degreePerSecond)
            {
                if (_rotateToFunc == null)
                {
                    _rotateToFunc =
                        (_rotateTo)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                              "fn_Entity_rotateTo"), typeof(_rotateTo));
                }

                _rotateToFunc(thisPtr, lookPosition, degreePerSecond);
            }
            internal static void setNodeNormal(IntPtr thisPtr, InternalPoint3FStruct normal)
            {
                if (_setNodeNormalFunc == null)
                {
                    _setNodeNormalFunc =
                        (_setNodeNormal)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                   "fn_GuiMeshRoadEditorCtrl_setNodeNormal"), typeof(_setNodeNormal));
                }

                _setNodeNormalFunc(thisPtr, normal);
            }
Example #21
0
            internal static InternalPoint3FStruct project(IntPtr thisPtr, InternalPoint3FStruct worldPosition)
            {
                if (_projectFunc == null)
                {
                    _projectFunc =
                        (_project)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                             "fn_GuiTSCtrl_project"), typeof(_project));
                }

                return(_projectFunc(thisPtr, worldPosition));
            }
Example #22
0
            internal static void drawBox(IntPtr thisPtr, InternalPoint3FStruct a, InternalPoint3FStruct b, InternalLinearColorFStruct color)
            {
                if (_drawBoxFunc == null)
                {
                    _drawBoxFunc =
                        (_drawBox)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                             "fn_DebugDrawer_drawBox"), typeof(_drawBox));
                }

                _drawBoxFunc(thisPtr, a, b, color);
            }
Example #23
0
            internal static void detach(IntPtr thisPtr, InternalPoint3FStruct force)
            {
                if (_detachFunc == null)
                {
                    _detachFunc =
                        (_detach)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                            "fn_PhysicsForce_detach"), typeof(_detach));
                }

                _detachFunc(thisPtr, force);
            }
Example #24
0
            internal static bool setOrbitObject(IntPtr thisPtr, IntPtr orbitObject, InternalPoint3FStruct rotation, float minDistance, float maxDistance, float initDistance, bool ownClientObject, InternalPoint3FStruct offset, bool locked)
            {
                if (_setOrbitObjectFunc == null)
                {
                    _setOrbitObjectFunc =
                        (_setOrbitObject)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                    "fn_Camera_setOrbitObject"), typeof(_setOrbitObject));
                }

                return(_setOrbitObjectFunc(thisPtr, orbitObject, rotation, minDistance, maxDistance, initDistance, ownClientObject, offset, locked));
            }
Example #25
0
            internal static void setForwardVector(IntPtr thisPtr, InternalPoint3FStruct newForward)
            {
                if (_setForwardVectorFunc == null)
                {
                    _setForwardVectorFunc =
                        (_setForwardVector)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                      "fn_CameraComponent_setForwardVector"), typeof(_setForwardVector));
                }

                _setForwardVectorFunc(thisPtr, newForward);
            }
Example #26
0
            internal static bool setTrackObject(IntPtr thisPtr, IntPtr trackObject, InternalPoint3FStruct offset)
            {
                if (_setTrackObjectFunc == null)
                {
                    _setTrackObjectFunc =
                        (_setTrackObject)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                    "fn_Camera_setTrackObject"), typeof(_setTrackObject));
                }

                return(_setTrackObjectFunc(thisPtr, trackObject, offset));
            }
Example #27
0
            internal static void setAimLocation(IntPtr thisPtr, InternalPoint3FStruct v)
            {
                if (_setAimLocationFunc == null)
                {
                    _setAimLocationFunc =
                        (_setAimLocation)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                    "fn_AIClient_setAimLocation"), typeof(_setAimLocation));
                }

                _setAimLocationFunc(thisPtr, v);
            }
Example #28
0
            internal static void setVelocity(IntPtr thisPtr, InternalPoint3FStruct velocity)
            {
                if (_setVelocityFunc == null)
                {
                    _setVelocityFunc =
                        (_setVelocity)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                 "fn_Camera_setVelocity"), typeof(_setVelocity));
                }

                _setVelocityFunc(thisPtr, velocity);
            }
Example #29
0
            internal static void applyForce(IntPtr thisPtr, InternalPoint3FStruct force)
            {
                if (_applyForceFunc == null)
                {
                    _applyForceFunc =
                        (_applyForce)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                "fn_PhysicsShape_applyForce"), typeof(_applyForce));
                }

                _applyForceFunc(thisPtr, force);
            }
Example #30
0
            internal static void setOrbitPos(IntPtr thisPtr, InternalPoint3FStruct pos)
            {
                if (_setOrbitPosFunc == null)
                {
                    _setOrbitPosFunc =
                        (_setOrbitPos)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                                 "fn_GuiShapeEdPreview_setOrbitPos"), typeof(_setOrbitPos));
                }

                _setOrbitPosFunc(thisPtr, pos);
            }