constraint.Axis

From GMod Wiki

Jump to: navigation, search
Function
Syntax constraint.Axis( Entity Ent1, Entity Ent2, Number Bone1, Number Bone2, Vector LPos1, Vector LPos2, Number forcelimit, Number torquelimit, Number friction, Number nocollide, Vector LocalAxis )
Where is this used?
Description:
Creates an axis constraint.
Returns: Entity
Part of Library: constraint
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Constraint.Axis]Constraint.Axis [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCreate a door hinge
Used onNewerServer.png
Code
constraint.Axis(Ent1, Ent2,
                Bone1, Bone2,
                LPos1, LPos2,
                forcelimit, torquelimit,
                friction, nocollide,
                Vector(0,0,1))
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox