@tlua/gmod 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/package.json +1 -1
  2. package/types/achievementicon.d.tlua +0 -1
  3. package/types/achievements.d.tlua +15 -16
  4. package/types/ai.d.tlua +5 -6
  5. package/types/ai_schedule.d.tlua +0 -1
  6. package/types/ai_task.d.tlua +0 -1
  7. package/types/angle.d.tlua +18 -19
  8. package/types/avatarimage.d.tlua +0 -1
  9. package/types/awesomium.d.tlua +0 -1
  10. package/types/baseclass.d.tlua +1 -3
  11. package/types/bf_read.d.tlua +10 -12
  12. package/types/bit.d.tlua +11 -12
  13. package/types/button.d.tlua +0 -1
  14. package/types/cam.d.tlua +16 -17
  15. package/types/ceffectdata.d.tlua +31 -33
  16. package/types/chat.d.tlua +5 -6
  17. package/types/checkbutton.d.tlua +0 -1
  18. package/types/cleanup.d.tlua +7 -8
  19. package/types/cluaemitter.d.tlua +11 -13
  20. package/types/clualocomotion.d.tlua +39 -41
  21. package/types/cluaparticle.d.tlua +43 -45
  22. package/types/cmovedata.d.tlua +46 -48
  23. package/types/cnavarea.d.tlua +76 -78
  24. package/types/cnavladder.d.tlua +21 -23
  25. package/types/cnewparticleeffect.d.tlua +25 -27
  26. package/types/color.d.tlua +28 -29
  27. package/types/concommand.d.tlua +4 -5
  28. package/types/constraint.d.tlua +28 -29
  29. package/types/construct.d.tlua +1 -2
  30. package/types/contentheader.d.tlua +1 -3
  31. package/types/contenticon.d.tlua +7 -9
  32. package/types/contentsidebar.d.tlua +2 -4
  33. package/types/contentsidebartoolbox.d.tlua +0 -1
  34. package/types/contextbase.d.tlua +2 -4
  35. package/types/controlpanel.d.tlua +11 -14
  36. package/types/controlpresets.d.tlua +11 -13
  37. package/types/convar.d.tlua +15 -17
  38. package/types/cookie.d.tlua +3 -4
  39. package/types/coroutine.d.tlua +7 -8
  40. package/types/crecipientfilter.d.tlua +15 -17
  41. package/types/csent.d.tlua +0 -1
  42. package/types/csoundpatch.d.tlua +13 -15
  43. package/types/ctakedamageinfo.d.tlua +32 -34
  44. package/types/ctrllistbox.d.tlua +0 -1
  45. package/types/ctrlnumpad.d.tlua +5 -7
  46. package/types/cusercmd.d.tlua +26 -28
  47. package/types/custom_entity_fields.d.tlua +0 -1
  48. package/types/cvars.d.tlua +6 -7
  49. package/types/dadjustablemodelpanel.d.tlua +5 -7
  50. package/types/dalphabar.d.tlua +1 -3
  51. package/types/dbinder.d.tlua +2 -4
  52. package/types/dbubblecontainer.d.tlua +0 -2
  53. package/types/dbutton.d.tlua +6 -8
  54. package/types/dcategoryheader.d.tlua +0 -1
  55. package/types/dcategorylist.d.tlua +0 -1
  56. package/types/dcheckbox.d.tlua +3 -5
  57. package/types/dcheckboxlabel.d.tlua +9 -10
  58. package/types/dcollapsiblecategory.d.tlua +21 -23
  59. package/types/dcolorbutton.d.tlua +5 -7
  60. package/types/dcolorcombo.d.tlua +3 -5
  61. package/types/dcolorcube.d.tlua +11 -13
  62. package/types/dcolormixer.d.tlua +25 -27
  63. package/types/dcolorpalette.d.tlua +21 -23
  64. package/types/dcolumnsheet.d.tlua +3 -5
  65. package/types/dcombobox.d.tlua +15 -17
  66. package/types/ddragbase.d.tlua +11 -13
  67. package/types/ddrawer.d.tlua +6 -8
  68. package/types/debug.d.tlua +16 -19
  69. package/types/debugoverlay.d.tlua +11 -12
  70. package/types/dentityproperties.d.tlua +3 -5
  71. package/types/derma.d.tlua +10 -11
  72. package/types/dexpandbutton.d.tlua +1 -3
  73. package/types/dfilebrowser.d.tlua +20 -21
  74. package/types/dform.d.tlua +16 -18
  75. package/types/dframe.d.tlua +24 -25
  76. package/types/dgrid.d.tlua +9 -11
  77. package/types/dhorizontaldivider.d.tlua +18 -20
  78. package/types/dhorizontalscroller.d.tlua +9 -11
  79. package/types/dhscrollbar.d.tlua +9 -11
  80. package/types/dhtml.d.tlua +6 -8
  81. package/types/dhtmlcontrols.d.tlua +5 -6
  82. package/types/diconbrowser.d.tlua +9 -11
  83. package/types/diconlayout.d.tlua +16 -18
  84. package/types/dimage.d.tlua +17 -20
  85. package/types/dimagebutton.d.tlua +9 -10
  86. package/types/dkillicon.d.tlua +0 -1
  87. package/types/dlabel.d.tlua +31 -33
  88. package/types/dlabeleditable.d.tlua +3 -5
  89. package/types/dlabelurl.d.tlua +8 -10
  90. package/types/dlistbox.d.tlua +6 -8
  91. package/types/dlistboxitem.d.tlua +2 -4
  92. package/types/dlistlayout.d.tlua +0 -1
  93. package/types/dlistview.d.tlua +32 -34
  94. package/types/dlistview_column.d.tlua +12 -14
  95. package/types/dlistview_columnplain.d.tlua +0 -1
  96. package/types/dlistview_draggerbar.d.tlua +0 -1
  97. package/types/dlistview_line.d.tlua +11 -13
  98. package/types/dlistviewheaderlabel.d.tlua +0 -1
  99. package/types/dlistviewlabel.d.tlua +0 -1
  100. package/types/dlistviewline.d.tlua +0 -1
  101. package/types/dmenu.d.tlua +23 -28
  102. package/types/dmenubar.d.tlua +2 -7
  103. package/types/dmenuoption.d.tlua +11 -13
  104. package/types/dmenuoptioncvar.d.tlua +4 -6
  105. package/types/dmodelpanel.d.tlua +20 -22
  106. package/types/dmodelselect.d.tlua +0 -2
  107. package/types/dmodelselectmulti.d.tlua +0 -2
  108. package/types/dnotify.d.tlua +8 -10
  109. package/types/dnumberscratch.d.tlua +24 -26
  110. package/types/dnumberwang.d.tlua +14 -16
  111. package/types/dnumpad.d.tlua +0 -1
  112. package/types/dnumslider.d.tlua +17 -18
  113. package/types/dpanel.d.tlua +12 -14
  114. package/types/dpanellist.d.tlua +11 -12
  115. package/types/dpaneloverlay.d.tlua +5 -7
  116. package/types/dpanelselect.d.tlua +0 -1
  117. package/types/dpanpanel.d.tlua +4 -6
  118. package/types/dprogress.d.tlua +1 -3
  119. package/types/dproperties.d.tlua +2 -4
  120. package/types/dproperty_boolean.d.tlua +0 -1
  121. package/types/dproperty_combo.d.tlua +1 -3
  122. package/types/dproperty_entity.d.tlua +0 -1
  123. package/types/dproperty_float.d.tlua +0 -1
  124. package/types/dproperty_generic.d.tlua +3 -5
  125. package/types/dproperty_int.d.tlua +0 -1
  126. package/types/dproperty_vectorcolor.d.tlua +0 -1
  127. package/types/dpropertysheet.d.tlua +15 -17
  128. package/types/dragndrop.d.tlua +10 -11
  129. package/types/draw.d.tlua +10 -12
  130. package/types/drgbpicker.d.tlua +2 -4
  131. package/types/drive.d.tlua +11 -13
  132. package/types/dscrollbargrip.d.tlua +0 -1
  133. package/types/dscrollpanel.d.tlua +10 -11
  134. package/types/dshape.d.tlua +5 -7
  135. package/types/dsizetocontents.d.tlua +3 -5
  136. package/types/dslider.d.tlua +26 -28
  137. package/types/dsprite.d.tlua +7 -9
  138. package/types/dtab.d.tlua +6 -8
  139. package/types/dtextentry.d.tlua +41 -43
  140. package/types/dtilelayout.d.tlua +19 -21
  141. package/types/dtooltip.d.tlua +4 -6
  142. package/types/dtree.d.tlua +14 -16
  143. package/types/dtree_node.d.tlua +66 -68
  144. package/types/dtree_node_button.d.tlua +0 -1
  145. package/types/duplicator.d.tlua +29 -31
  146. package/types/dverticaldivider.d.tlua +21 -23
  147. package/types/dvscrollbar.d.tlua +9 -11
  148. package/types/editablepanel.d.tlua +0 -1
  149. package/types/effect.d.tlua +2 -4
  150. package/types/effects.d.tlua +6 -7
  151. package/types/engine.d.tlua +21 -22
  152. package/types/entity.d.tlua +643 -674
  153. package/types/ents.d.tlua +19 -25
  154. package/types/enums.d.tlua +0 -1
  155. package/types/file.d.tlua +39 -40
  156. package/types/file_class.d.tlua +0 -1
  157. package/types/fingerposer.d.tlua +0 -1
  158. package/types/fingervar.d.tlua +0 -1
  159. package/types/frame.d.tlua +0 -1
  160. package/types/frame_blend.d.tlua +7 -8
  161. package/types/game.d.tlua +39 -40
  162. package/types/gameevent.d.tlua +0 -1
  163. package/types/gamemode.d.tlua +2 -4
  164. package/types/global.d.tlua +0 -18
  165. package/types/gm.d.tlua +266 -268
  166. package/types/gmod.d.tlua +0 -1
  167. package/types/gmsave.d.tlua +4 -5
  168. package/types/gui.d.tlua +21 -22
  169. package/types/gwen.d.tlua +3 -4
  170. package/types/halo.d.tlua +2 -3
  171. package/types/hammer.d.tlua +0 -1
  172. package/types/hook.d.tlua +4 -5
  173. package/types/html.d.tlua +0 -1
  174. package/types/http.d.tlua +1 -2
  175. package/types/iconeditor.d.tlua +9 -11
  176. package/types/igmodaudiochannel.d.tlua +40 -42
  177. package/types/imagecheckbox.d.tlua +2 -4
  178. package/types/imaterial.d.tlua +25 -27
  179. package/types/imesh.d.tlua +4 -6
  180. package/types/input.d.tlua +22 -25
  181. package/types/invalidateinternalentitycache.d.tlua +0 -1
  182. package/types/irestore.d.tlua +8 -10
  183. package/types/isave.d.tlua +8 -10
  184. package/types/itexture.d.tlua +9 -11
  185. package/types/ivideowriter.d.tlua +4 -6
  186. package/types/jit.d.tlua +16 -17
  187. package/types/killicon.d.tlua +7 -8
  188. package/types/label.d.tlua +0 -1
  189. package/types/language.d.tlua +1 -2
  190. package/types/list.d.tlua +8 -9
  191. package/types/makeballoon.d.tlua +0 -1
  192. package/types/markup.d.tlua +2 -3
  193. package/types/markupobject.d.tlua +4 -6
  194. package/types/material.d.tlua +0 -1
  195. package/types/math.d.tlua +83 -84
  196. package/types/matproxy.d.tlua +3 -4
  197. package/types/matselect.d.tlua +9 -11
  198. package/types/menu.d.tlua +0 -1
  199. package/types/menubar.d.tlua +2 -3
  200. package/types/mesh.d.tlua +19 -20
  201. package/types/modelimage.d.tlua +0 -1
  202. package/types/motionsensor.d.tlua +10 -11
  203. package/types/navmesh.d.tlua +26 -27
  204. package/types/net.d.tlua +51 -53
  205. package/types/nextbot.d.tlua +34 -37
  206. package/types/notification.d.tlua +2 -3
  207. package/types/npc.d.tlua +180 -182
  208. package/types/numpad.d.tlua +7 -8
  209. package/types/os.d.tlua +3 -5
  210. package/types/package.d.tlua +0 -1
  211. package/types/panel.d.tlua +329 -331
  212. package/types/panellist.d.tlua +0 -1
  213. package/types/pathfollower.d.tlua +30 -32
  214. package/types/permissions.d.tlua +6 -7
  215. package/types/physcollide.d.tlua +2 -4
  216. package/types/physenv.d.tlua +11 -12
  217. package/types/physobj.d.tlua +77 -79
  218. package/types/pixelvis_handle_t.d.tlua +0 -1
  219. package/types/player.d.tlua +288 -293
  220. package/types/player_manager.d.tlua +13 -14
  221. package/types/preseteditor.d.tlua +0 -1
  222. package/types/presets.d.tlua +6 -7
  223. package/types/projectedtexture.d.tlua +47 -49
  224. package/types/properties.d.tlua +5 -6
  225. package/types/propselect.d.tlua +3 -5
  226. package/types/radiobutton.d.tlua +0 -1
  227. package/types/render.d.tlua +142 -143
  228. package/types/resource.d.tlua +2 -3
  229. package/types/richtext.d.tlua +0 -1
  230. package/types/sandbox.d.tlua +52 -54
  231. package/types/saverestore.d.tlua +12 -13
  232. package/types/schedule.d.tlua +5 -7
  233. package/types/scripted_ents.d.tlua +9 -12
  234. package/types/search.d.tlua +1 -2
  235. package/types/serverlist.d.tlua +7 -8
  236. package/types/slidebar.d.tlua +0 -1
  237. package/types/slider.d.tlua +0 -1
  238. package/types/sound.d.tlua +10 -11
  239. package/types/spawnicon.d.tlua +6 -8
  240. package/types/spawnmenu.d.tlua +23 -25
  241. package/types/spawnmenucontentpanel.d.tlua +3 -5
  242. package/types/sql.d.tlua +9 -10
  243. package/types/stack.d.tlua +4 -6
  244. package/types/steamworks.d.tlua +18 -19
  245. package/types/string.d.tlua +46 -50
  246. package/types/structures.d.tlua +0 -7
  247. package/types/surface.d.tlua +34 -35
  248. package/types/surfaceinfo.d.tlua +4 -6
  249. package/types/system.d.tlua +10 -11
  250. package/types/table.d.tlua +45 -48
  251. package/types/task.d.tlua +8 -10
  252. package/types/team.d.tlua +19 -20
  253. package/types/textentry.d.tlua +0 -1
  254. package/types/tgaimage.d.tlua +0 -1
  255. package/types/timer.d.tlua +14 -15
  256. package/types/tool.d.tlua +42 -46
  257. package/types/ugcpublishwindow.d.tlua +7 -9
  258. package/types/umsg.d.tlua +12 -13
  259. package/types/undo.d.tlua +10 -11
  260. package/types/urllabel.d.tlua +0 -1
  261. package/types/usermessage.d.tlua +2 -3
  262. package/types/utf8.d.tlua +7 -8
  263. package/types/util.d.tlua +90 -95
  264. package/types/vector.d.tlua +36 -37
  265. package/types/vehicle.d.tlua +48 -51
  266. package/types/vgui.d.tlua +14 -19
  267. package/types/video.d.tlua +0 -1
  268. package/types/vmatrix.d.tlua +35 -36
  269. package/types/weapon.d.tlua +81 -84
  270. package/types/weapons.d.tlua +5 -7
  271. package/types/widgets.d.tlua +1 -2
  272. package/types/workshopfilebase.d.tlua +4 -6
@@ -16,24 +16,28 @@ interface PhysObj {
16
16
  * @source https://wiki.facepunch.com/gmod/PhysObj:AddAngleVelocity
17
17
  */
18
18
  AddAngleVelocity(self: PhysObj, angularVelocity: Vector): void;
19
+
19
20
  /**
20
21
  * Adds one or more bit flags.
21
22
  * @realm shared
22
23
  * @source https://wiki.facepunch.com/gmod/PhysObj:AddGameFlag
23
24
  */
24
25
  AddGameFlag(self: PhysObj, flags: number): void;
26
+
25
27
  /**
26
28
  * Adds the specified velocity to the current.
27
29
  * @realm shared
28
30
  * @source https://wiki.facepunch.com/gmod/PhysObj:AddVelocity
29
31
  */
30
32
  AddVelocity(self: PhysObj, velocity: Vector): void;
33
+
31
34
  /**
32
35
  * Rotates the object so that it's angles are aligned to the ones inputted.
33
36
  * @realm shared
34
37
  * @source https://wiki.facepunch.com/gmod/PhysObj:AlignAngles
35
38
  */
36
39
  AlignAngles(self: PhysObj, from: Angle, to: Angle): Angle;
40
+
37
41
  /**
38
42
  * Applies the specified impulse in the mass center of the physics object.
39
43
  *
@@ -44,18 +48,21 @@ interface PhysObj {
44
48
  * @source https://wiki.facepunch.com/gmod/PhysObj:ApplyForceCenter
45
49
  */
46
50
  ApplyForceCenter(self: PhysObj, impulse: Vector): void;
51
+
47
52
  /**
48
53
  * Applies the specified impulse on the physics object at the specified position.
49
54
  * @realm shared
50
55
  * @source https://wiki.facepunch.com/gmod/PhysObj:ApplyForceOffset
51
56
  */
52
57
  ApplyForceOffset(self: PhysObj, impulse: Vector, position: Vector): void;
58
+
53
59
  /**
54
60
  * Applies the specified angular impulse to the physics object. See [PhysObj:CalculateForceOffset](https://wiki.facepunch.com/gmod/PhysObj:CalculateForceOffset)
55
61
  * @realm shared
56
62
  * @source https://wiki.facepunch.com/gmod/PhysObj:ApplyTorqueCenter
57
63
  */
58
64
  ApplyTorqueCenter(self: PhysObj, angularImpulse: Vector): void;
65
+
59
66
  /**
60
67
  * Calculates the linear and angular impulse on the object's center of mass for an offset impulse.The outputs can be used with [PhysObj:ApplyForceCenter](https://wiki.facepunch.com/gmod/PhysObj:ApplyForceCenter) and [PhysObj:ApplyTorqueCenter](https://wiki.facepunch.com/gmod/PhysObj:ApplyTorqueCenter), respectively.
61
68
  *
@@ -64,6 +71,7 @@ interface PhysObj {
64
71
  * @source https://wiki.facepunch.com/gmod/PhysObj:CalculateForceOffset
65
72
  */
66
73
  CalculateForceOffset(self: PhysObj, impulse: Vector, position: Vector): (Vector, Vector);
74
+
67
75
  /**
68
76
  * Calculates the linear and angular velocities on the center of mass for an offset impulse. The outputs can be directly passed to [PhysObj:AddVelocity](https://wiki.facepunch.com/gmod/PhysObj:AddVelocity) and [PhysObj:AddAngleVelocity](https://wiki.facepunch.com/gmod/PhysObj:AddAngleVelocity), respectively.
69
77
  *
@@ -73,18 +81,21 @@ interface PhysObj {
73
81
  * @source https://wiki.facepunch.com/gmod/PhysObj:CalculateVelocityOffset
74
82
  */
75
83
  CalculateVelocityOffset(self: PhysObj, impulse: Vector, position: Vector): (Vector, Vector);
84
+
76
85
  /**
77
86
  * Removes one of more specified flags.
78
87
  * @realm shared
79
88
  * @source https://wiki.facepunch.com/gmod/PhysObj:ClearGameFlag
80
89
  */
81
90
  ClearGameFlag(self: PhysObj, flags: number): void;
91
+
82
92
  /**
83
93
  * Allows you to move a PhysObj to a point and angle in 3D space. Works with any PhysObj, not just physics shadows.
84
94
  * @realm shared
85
95
  * @source https://wiki.facepunch.com/gmod/PhysObj:ComputeShadowControl
86
96
  */
87
97
  ComputeShadowControl(self: PhysObj, shadowparams: ShadowControlParams): void;
98
+
88
99
  /**
89
100
  * Sets whether the physics object should collide with anything or not, including world.
90
101
  *
@@ -99,18 +110,21 @@ interface PhysObj {
99
110
  * @source https://wiki.facepunch.com/gmod/PhysObj:EnableCollisions
100
111
  */
101
112
  EnableCollisions(self: PhysObj, enable: boolean): void;
113
+
102
114
  /**
103
115
  * Sets whenever the physics object should be affected by drag.
104
116
  * @realm shared
105
117
  * @source https://wiki.facepunch.com/gmod/PhysObj:EnableDrag
106
118
  */
107
119
  EnableDrag(self: PhysObj, enable: boolean): void;
120
+
108
121
  /**
109
122
  * Sets whether the PhysObject should be affected by gravity
110
123
  * @realm shared
111
124
  * @source https://wiki.facepunch.com/gmod/PhysObj:EnableGravity
112
125
  */
113
126
  EnableGravity(self: PhysObj, enable: boolean): void;
127
+
114
128
  /**
115
129
  * Sets whether the physobject should be able to move or not.
116
130
  *
@@ -120,24 +134,28 @@ interface PhysObj {
120
134
  * @source https://wiki.facepunch.com/gmod/PhysObj:EnableMotion
121
135
  */
122
136
  EnableMotion(self: PhysObj, enable: boolean): void;
137
+
123
138
  /**
124
139
  * Returns the mins and max of the physics object Axis-Aligned Bounding Box.
125
140
  * @realm shared
126
141
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetAABB
127
142
  */
128
143
  GetAABB(self: PhysObj): (Vector | nil, Vector);
144
+
129
145
  /**
130
146
  * Gets the angular velocity of the object in degrees per second as a local vector. You can use dot product to read the magnitude from a specific axis.
131
147
  * @realm shared
132
148
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetAngleVelocity
133
149
  */
134
150
  GetAngleVelocity(self: PhysObj): Vector;
151
+
135
152
  /**
136
153
  * Returns the angles of the physics object in degrees.
137
154
  * @realm shared
138
155
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetAngles
139
156
  */
140
157
  GetAngles(self: PhysObj): Angle;
158
+
141
159
  /**
142
160
  * Returns the buoyancy ratio of the physics object. (How well it floats in water).
143
161
  *
@@ -148,36 +166,42 @@ interface PhysObj {
148
166
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetBuoyancyRatio
149
167
  */
150
168
  GetBuoyancyRatio(self: PhysObj): number;
169
+
151
170
  /**
152
171
  * Returns the contents flag of the [PhysObj](https://wiki.facepunch.com/gmod/PhysObj).
153
172
  * @realm shared
154
173
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetContents
155
174
  */
156
175
  GetContents(self: PhysObj): number;
176
+
157
177
  /**
158
178
  * Returns the linear and angular damping of the physics object.
159
179
  * @realm shared
160
180
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetDamping
161
181
  */
162
182
  GetDamping(self: PhysObj): (number, number);
183
+
163
184
  /**
164
185
  * Returns the sum of the linear and rotational kinetic energies of the physics object.
165
186
  * @realm shared
166
187
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetEnergy
167
188
  */
168
189
  GetEnergy(self: PhysObj): number;
190
+
169
191
  /**
170
192
  * Returns the parent entity of the physics object.
171
193
  * @realm shared
172
194
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetEntity
173
195
  */
174
196
  GetEntity(self: PhysObj): Entity;
197
+
175
198
  /**
176
199
  * Returns the friction snapshot of this physics object. This is useful for determining if an object touching ground for example.
177
200
  * @realm server
178
201
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetFrictionSnapshot
179
202
  */
180
203
  GetFrictionSnapshot(self: PhysObj): table;
204
+
181
205
  /**
182
206
  * Returns the index this physics object is on its [PhysObj:GetEntity](https://wiki.facepunch.com/gmod/PhysObj:GetEntity).
183
207
  *
@@ -187,36 +211,42 @@ interface PhysObj {
187
211
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetIndex
188
212
  */
189
213
  GetIndex(self: PhysObj): number;
214
+
190
215
  /**
191
216
  * Returns the principal moments of inertia `(Ixx, Iyy, Izz)` of the physics object, in the local frame, with respect to the center of mass.
192
217
  * @realm shared
193
218
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetInertia
194
219
  */
195
220
  GetInertia(self: PhysObj): Vector;
221
+
196
222
  /**
197
223
  * Returns 1 divided by the angular inertia. See [PhysObj:GetInertia](https://wiki.facepunch.com/gmod/PhysObj:GetInertia)
198
224
  * @realm shared
199
225
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetInvInertia
200
226
  */
201
227
  GetInvInertia(self: PhysObj): Vector;
228
+
202
229
  /**
203
230
  * Returns 1 divided by the physics object's mass (in kilograms).
204
231
  * @realm shared
205
232
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetInvMass
206
233
  */
207
234
  GetInvMass(self: PhysObj): number;
235
+
208
236
  /**
209
237
  * Returns the mass of the physics object.
210
238
  * @realm shared
211
239
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetMass
212
240
  */
213
241
  GetMass(self: PhysObj): number;
242
+
214
243
  /**
215
244
  * Returns the center of mass of the physics object as a local vector.
216
245
  * @realm shared
217
246
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetMassCenter
218
247
  */
219
248
  GetMassCenter(self: PhysObj): Vector;
249
+
220
250
  /**
221
251
  * Returns the [physical material](https://developer.valvesoftware.com/wiki/Material_surface_properties) ($surfaceprop) of the physics object.
222
252
  *
@@ -225,96 +255,112 @@ interface PhysObj {
225
255
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetMaterial
226
256
  */
227
257
  GetMaterial(self: PhysObj): string;
258
+
228
259
  /**
229
260
  * Returns the physics mesh of the object which is used for physobj-on-physobj collision.
230
261
  * @realm shared
231
262
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetMesh
232
263
  */
233
264
  GetMesh(self: PhysObj): table;
265
+
234
266
  /**
235
267
  * Returns all convex physics meshes of the object. See [Entity:PhysicsInitMultiConvex](https://wiki.facepunch.com/gmod/Entity:PhysicsInitMultiConvex) for more information.
236
268
  * @realm shared
237
269
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetMeshConvexes
238
270
  */
239
271
  GetMeshConvexes(self: PhysObj): table;
272
+
240
273
  /**
241
274
  * Returns the name of the physics object.
242
275
  * @realm shared
243
276
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetName
244
277
  */
245
278
  GetName(self: PhysObj): string;
279
+
246
280
  /**
247
281
  * Returns the position of the physics object.
248
282
  * @realm shared
249
283
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetPos
250
284
  */
251
285
  GetPos(self: PhysObj): Vector;
286
+
252
287
  /**
253
288
  * Returns the position and angle of the physics object as a 3x4 matrix ([VMatrix](https://wiki.facepunch.com/gmod/VMatrix) is 4x4 so the fourth row goes unused). The first three columns store the angle as a [rotation matrix](https://en.wikipedia.org/wiki/Rotation_matrix), and the fourth column stores the position vector.
254
289
  * @realm shared
255
290
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetPositionMatrix
256
291
  */
257
292
  GetPositionMatrix(self: PhysObj): VMatrix;
293
+
258
294
  /**
259
295
  * Returns the rotation damping of the physics object.
260
296
  * @realm shared
261
297
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetRotDamping
262
298
  */
263
299
  GetRotDamping(self: PhysObj): number;
300
+
264
301
  /**
265
302
  * Returns the angles of the [PhysObj](https://wiki.facepunch.com/gmod/PhysObj) shadow. See [PhysObj:UpdateShadow](https://wiki.facepunch.com/gmod/PhysObj:UpdateShadow).
266
303
  * @realm shared
267
304
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetShadowAngles
268
305
  */
269
306
  GetShadowAngles(self: PhysObj): Angle;
307
+
270
308
  /**
271
309
  * Returns the position of the [PhysObj](https://wiki.facepunch.com/gmod/PhysObj) shadow. See [PhysObj:UpdateShadow](https://wiki.facepunch.com/gmod/PhysObj:UpdateShadow).
272
310
  * @realm shared
273
311
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetShadowPos
274
312
  */
275
313
  GetShadowPos(self: PhysObj): Vector;
314
+
276
315
  /**
277
316
  * Returns the speed damping of the physics object.
278
317
  * @realm shared
279
318
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetSpeedDamping
280
319
  */
281
320
  GetSpeedDamping(self: PhysObj): number;
321
+
282
322
  /**
283
323
  * Returns the internal and external stress of the entity.
284
324
  * @realm server
285
325
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetStress
286
326
  */
287
327
  GetStress(self: PhysObj): (number, number);
328
+
288
329
  /**
289
330
  * Returns the surface area of the physics object in source-units². Or nil if the PhysObj is a generated sphere or box.
290
331
  * @realm shared
291
332
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetSurfaceArea
292
333
  */
293
334
  GetSurfaceArea(self: PhysObj): number | nil;
335
+
294
336
  /**
295
337
  * Returns the absolute directional velocity of the physobject.
296
338
  * @realm shared
297
339
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetVelocity
298
340
  */
299
341
  GetVelocity(self: PhysObj): Vector;
342
+
300
343
  /**
301
344
  * Returns the world velocity of a point in world coordinates about the object. This is useful for objects rotating around their own axis/origin.
302
345
  * @realm shared
303
346
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetVelocityAtPoint
304
347
  */
305
348
  GetVelocityAtPoint(self: PhysObj, point: Vector): Vector;
349
+
306
350
  /**
307
351
  * Returns the volume in source units³. Or nil if the PhysObj is a generated sphere or box.
308
352
  * @realm shared
309
353
  * @source https://wiki.facepunch.com/gmod/PhysObj:GetVolume
310
354
  */
311
355
  GetVolume(self: PhysObj): number | nil;
356
+
312
357
  /**
313
358
  * Returns whenever the specified flag(s) is/are set.
314
359
  * @realm shared
315
360
  * @source https://wiki.facepunch.com/gmod/PhysObj:HasGameFlag
316
361
  */
317
362
  HasGameFlag(self: PhysObj, flags: number): boolean;
363
+
318
364
  /**
319
365
  * Returns whether the physics object is "sleeping".
320
366
  *
@@ -324,36 +370,42 @@ interface PhysObj {
324
370
  * @source https://wiki.facepunch.com/gmod/PhysObj:IsAsleep
325
371
  */
326
372
  IsAsleep(self: PhysObj): boolean;
373
+
327
374
  /**
328
375
  * Returns whenever the entity is able to collide or not.
329
376
  * @realm shared
330
377
  * @source https://wiki.facepunch.com/gmod/PhysObj:IsCollisionEnabled
331
378
  */
332
379
  IsCollisionEnabled(self: PhysObj): boolean;
380
+
333
381
  /**
334
382
  * Returns whenever the entity is affected by drag.
335
383
  * @realm shared
336
384
  * @source https://wiki.facepunch.com/gmod/PhysObj:IsDragEnabled
337
385
  */
338
386
  IsDragEnabled(self: PhysObj): boolean;
387
+
339
388
  /**
340
389
  * Returns whenever the entity is affected by gravity.
341
390
  * @realm shared
342
391
  * @source https://wiki.facepunch.com/gmod/PhysObj:IsGravityEnabled
343
392
  */
344
393
  IsGravityEnabled(self: PhysObj): boolean;
394
+
345
395
  /**
346
396
  * Returns if the physics object can move itself (by velocity, acceleration)
347
397
  * @realm shared
348
398
  * @source https://wiki.facepunch.com/gmod/PhysObj:IsMotionEnabled
349
399
  */
350
400
  IsMotionEnabled(self: PhysObj): boolean;
401
+
351
402
  /**
352
403
  * Returns whenever the entity is able to move.
353
404
  * @realm shared
354
405
  * @source https://wiki.facepunch.com/gmod/PhysObj:IsMoveable
355
406
  */
356
407
  IsMoveable(self: PhysObj): boolean;
408
+
357
409
  /**
358
410
  * Returns whenever the physics object is penetrating another physics object.
359
411
  *
@@ -363,12 +415,14 @@ interface PhysObj {
363
415
  * @source https://wiki.facepunch.com/gmod/PhysObj:IsPenetrating
364
416
  */
365
417
  IsPenetrating(self: PhysObj): boolean;
418
+
366
419
  /**
367
420
  * Returns if the physics object is valid/not NULL.
368
421
  * @realm shared
369
422
  * @source https://wiki.facepunch.com/gmod/PhysObj:IsValid
370
423
  */
371
424
  IsValid(self: PhysObj): boolean;
425
+
372
426
  /**
373
427
  * Translates a vector in the physics object's local space into worldspace coordinates.
374
428
  *
@@ -389,6 +443,7 @@ interface PhysObj {
389
443
  * @source https://wiki.facepunch.com/gmod/PhysObj:LocalToWorld
390
444
  */
391
445
  LocalToWorld(self: PhysObj, vecLocal: Vector): Vector;
446
+
392
447
  /**
393
448
  * Rotationally transforms a vector in the physics object's local space by the [PhysObj:GetPositionMatrix](https://wiki.facepunch.com/gmod/PhysObj:GetPositionMatrix).
394
449
  *
@@ -399,72 +454,84 @@ interface PhysObj {
399
454
  * @source https://wiki.facepunch.com/gmod/PhysObj:LocalToWorldVector
400
455
  */
401
456
  LocalToWorldVector(self: PhysObj, vecLocal: Vector): Vector;
457
+
402
458
  /**
403
459
  * Prints debug info about the state of the physics object to the console.
404
460
  * @realm shared
405
461
  * @source https://wiki.facepunch.com/gmod/PhysObj:OutputDebugInfo
406
462
  */
407
463
  OutputDebugInfo(self: PhysObj): void;
464
+
408
465
  /**
409
466
  * Call this when the collision filter conditions change due to this object's state (e.g. changing solid type or collision group)
410
467
  * @realm shared
411
468
  * @source https://wiki.facepunch.com/gmod/PhysObj:RecheckCollisionFilter
412
469
  */
413
470
  RecheckCollisionFilter(self: PhysObj): void;
471
+
414
472
  /**
415
473
  * A convinience function for [Angle:RotateAroundAxis](https://wiki.facepunch.com/gmod/Angle:RotateAroundAxis).
416
474
  * @realm shared
417
475
  * @source https://wiki.facepunch.com/gmod/PhysObj:RotateAroundAxis
418
476
  */
419
477
  RotateAroundAxis(self: PhysObj, dir: Vector, ang: number): Angle;
478
+
420
479
  /**
421
480
  * Sets the amount of [drag](https://en.wikipedia.org/wiki/Drag_(physics)) to apply to a physics object when attempting to rotate.
422
481
  * @realm shared
423
482
  * @source https://wiki.facepunch.com/gmod/PhysObj:SetAngleDragCoefficient
424
483
  */
425
484
  SetAngleDragCoefficient(self: PhysObj, coefficient: number): void;
485
+
426
486
  /**
427
487
  * Sets the specified [angular velocity](https://en.wikipedia.org/wiki/Angular_velocity) on the [PhysObj](https://wiki.facepunch.com/gmod/PhysObj)
428
488
  * @realm shared
429
489
  * @source https://wiki.facepunch.com/gmod/PhysObj:SetAngleVelocity
430
490
  */
431
491
  SetAngleVelocity(self: PhysObj, angularVelocity: Vector): void;
492
+
432
493
  /**
433
494
  * Sets the specified instantaneous [angular velocity](https://en.wikipedia.org/wiki/Angular_velocity) on the [PhysObj](https://wiki.facepunch.com/gmod/PhysObj)
434
495
  * @realm shared
435
496
  * @source https://wiki.facepunch.com/gmod/PhysObj:SetAngleVelocityInstantaneous
436
497
  */
437
498
  SetAngleVelocityInstantaneous(self: PhysObj, angularVelocity: Vector): void;
499
+
438
500
  /**
439
501
  * Sets the angles of the physobject in degrees.
440
502
  * @realm shared
441
503
  * @source https://wiki.facepunch.com/gmod/PhysObj:SetAngles
442
504
  */
443
505
  SetAngles(self: PhysObj, angles: Angle): void;
506
+
444
507
  /**
445
508
  * Sets the buoyancy ratio of the physics object. (How well it floats in water)
446
509
  * @realm shared
447
510
  * @source https://wiki.facepunch.com/gmod/PhysObj:SetBuoyancyRatio
448
511
  */
449
512
  SetBuoyancyRatio(self: PhysObj, buoyancy: number): void;
513
+
450
514
  /**
451
515
  * Sets the contents flag of the [PhysObj](https://wiki.facepunch.com/gmod/PhysObj).
452
516
  * @realm shared
453
517
  * @source https://wiki.facepunch.com/gmod/PhysObj:SetContents
454
518
  */
455
519
  SetContents(self: PhysObj, contents: CONTENTS): void;
520
+
456
521
  /**
457
522
  * Sets the linear and angular damping of the physics object.
458
523
  * @realm shared
459
524
  * @source https://wiki.facepunch.com/gmod/PhysObj:SetDamping
460
525
  */
461
526
  SetDamping(self: PhysObj, linearDamping: number, angularDamping: number): void;
527
+
462
528
  /**
463
529
  * Modifies how much drag (air resistance) affects the object.
464
530
  * @realm shared
465
531
  * @source https://wiki.facepunch.com/gmod/PhysObj:SetDragCoefficient
466
532
  */
467
533
  SetDragCoefficient(self: PhysObj, drag: number): void;
534
+
468
535
  /**
469
536
  * Sets the angular inertia. See [PhysObj:GetInertia](https://wiki.facepunch.com/gmod/PhysObj:GetInertia).
470
537
  *
@@ -475,6 +542,7 @@ interface PhysObj {
475
542
  * @source https://wiki.facepunch.com/gmod/PhysObj:SetInertia
476
543
  */
477
544
  SetInertia(self: PhysObj, angularInertia: Vector): void;
545
+
478
546
  /**
479
547
  * Sets the mass of the physics object.
480
548
  *
@@ -487,6 +555,7 @@ interface PhysObj {
487
555
  * @source https://wiki.facepunch.com/gmod/PhysObj:SetMass
488
556
  */
489
557
  SetMass(self: PhysObj, mass: number): void;
558
+
490
559
  /**
491
560
  * Sets the material of the physobject.
492
561
  *
@@ -497,24 +566,28 @@ interface PhysObj {
497
566
  * @source https://wiki.facepunch.com/gmod/PhysObj:SetMaterial
498
567
  */
499
568
  SetMaterial(self: PhysObj, materialName: string): void;
569
+
500
570
  /**
501
571
  * Sets the position of the physobject.
502
572
  * @realm shared
503
573
  * @source https://wiki.facepunch.com/gmod/PhysObj:SetPos
504
574
  */
505
575
  SetPos(self: PhysObj, position: Vector, teleport?: boolean): void;
576
+
506
577
  /**
507
578
  * Sets the velocity of the physics object for the next iteration.
508
579
  * @realm shared
509
580
  * @source https://wiki.facepunch.com/gmod/PhysObj:SetVelocity
510
581
  */
511
582
  SetVelocity(self: PhysObj, velocity: Vector): void;
583
+
512
584
  /**
513
585
  * Sets the velocity of the physics object.
514
586
  * @realm shared
515
587
  * @source https://wiki.facepunch.com/gmod/PhysObj:SetVelocityInstantaneous
516
588
  */
517
589
  SetVelocityInstantaneous(self: PhysObj, velocity: Vector): void;
590
+
518
591
  /**
519
592
  * Makes the physics object "sleep". The physics object will no longer be moving unless it is "woken up" by either a collision with another moving object, or by [PhysObj:Wake](https://wiki.facepunch.com/gmod/PhysObj:Wake).
520
593
  *
@@ -524,6 +597,7 @@ interface PhysObj {
524
597
  * @source https://wiki.facepunch.com/gmod/PhysObj:Sleep
525
598
  */
526
599
  Sleep(self: PhysObj): void;
600
+
527
601
  /**
528
602
  * Unlike [PhysObj:SetPos](https://wiki.facepunch.com/gmod/PhysObj:SetPos) and [PhysObj:SetAngles](https://wiki.facepunch.com/gmod/PhysObj:SetAngles), this allows the movement of a physobj while leaving physics interactions intact.
529
603
  * This is used internally by the motion controller of the Gravity Gun , the +use pickup and the Physics Gun, and entities such as the crane.
@@ -535,6 +609,7 @@ interface PhysObj {
535
609
  * @source https://wiki.facepunch.com/gmod/PhysObj:UpdateShadow
536
610
  */
537
611
  UpdateShadow(self: PhysObj, targetPosition: Vector, targetAngles: Angle, frameTime: number): void;
612
+
538
613
  /**
539
614
  * Wakes the physics object, so that it will continue to simulate physics/gravity.
540
615
  *
@@ -544,12 +619,14 @@ interface PhysObj {
544
619
  * @source https://wiki.facepunch.com/gmod/PhysObj:Wake
545
620
  */
546
621
  Wake(self: PhysObj): void;
622
+
547
623
  /**
548
624
  * Translates a worldspace vector into the physics object's local space.
549
625
  * @realm shared
550
626
  * @source https://wiki.facepunch.com/gmod/PhysObj:WorldToLocal
551
627
  */
552
628
  WorldToLocal(self: PhysObj, vec: Vector): Vector;
629
+
553
630
  /**
554
631
  * Rotationally transforms a worldspace vector into the physics object's local space by the inverted [PhysObj:GetPositionMatrix](https://wiki.facepunch.com/gmod/PhysObj:GetPositionMatrix).
555
632
  *
@@ -563,82 +640,3 @@ interface PhysObj {
563
640
  */
564
641
  WorldToLocalVector(self: PhysObj, vec: Vector): Vector;
565
642
  }
566
-
567
-
568
-
569
-
570
-
571
-
572
-
573
-
574
-
575
-
576
-
577
-
578
-
579
-
580
-
581
-
582
-
583
-
584
-
585
-
586
-
587
-
588
-
589
-
590
-
591
-
592
-
593
-
594
-
595
-
596
-
597
-
598
-
599
-
600
-
601
-
602
-
603
-
604
-
605
-
606
-
607
-
608
-
609
-
610
-
611
-
612
-
613
-
614
-
615
-
616
-
617
-
618
-
619
-
620
-
621
-
622
-
623
-
624
-
625
-
626
-
627
-
628
-
629
-
630
-
631
-
632
-
633
-
634
-
635
-
636
-
637
-
638
-
639
-
640
-
641
-
642
-
643
-
644
-
@@ -6,4 +6,3 @@
6
6
  * @source https://wiki.facepunch.com/gmod/pixelvis_handle_t
7
7
  */
8
8
  interface pixelvis_handle_t {}
9
-