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