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