Garry's Mod Wiki

constraint.AdvBallsocket

Entity constraint.AdvBallsocket( Entity Ent1, Entity Ent2, number Bone1, number Bone2, Vector LPos1, Vector LPos2, number forcelimit, number torquelimit, number xmin, number ymin, number zmin, number xmax, number ymax, number zmax, number xfric, number yfric, number zfric, number onlyrotation, number nocollide )

Description

Creates an advanced ballsocket (ragdoll) constraint.

Uses a https://developer.valvesoftware.com/wiki/Phys_ragdollconstraint

Arguments

1 Entity Ent1
First entity.
2 Entity Ent2
Second entity.
3 number Bone1
Bone of first entity (0 for non-ragdolls)
4 number Bone2
Bone of second entity (0 for non-ragdolls)
5 Vector LPos1
Position on the first entity, in its local space coordinates.
6 Vector LPos2
Position on the second entity, in its local space coordinates.
7 number forcelimit
Amount of force until it breaks (0 = unbreakable)
8 number torquelimit
Amount of torque (rotation speed) until it breaks (0 = unbreakable)
9 number xmin
Minimum angle in rotations around the X axis local to the constraint.
10 number ymin
Minimum angle in rotations around the Y axis local to the constraint.
11 number zmin
Minimum angle in rotations around the Z axis local to the constraint.
12 number xmax
Maximum angle in rotations around the X axis local to the constraint.
13 number ymax
Maximum angle in rotations around the Y axis local to the constraint.
14 number zmax
Maximum angle in rotations around the Z axis local to the constraint.
15 number xfric
Rotational friction in the X axis local to the constraint.
16 number yfric
Rotational friction in the Y axis local to the constraint.
17 number zfric
Rotational friction in the Z axis local to the constraint.
18 number onlyrotation
Only limit rotation, free movement.
19 number nocollide
Whether the entities should be no-collided.

Returns

1 Entity
A phys_ragdollconstraint entity. Will return false if the constraint could not be created.

Page Links


Special Pages


Wikis

?

Render Time: 89ms

Session 0
DB GetPage 2
Generate Html 56
SaveChanges 11
Render Body 0
Render Sidebar 18