constraint.AdvBallsocket

From Garry's Mod
Jump to: navigation, search
 constraint.AdvBallsocket( )

Contents

Description

Creates an advanced ballsocket (ragdoll) constraint.

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

Arguments

Entity Ent1

First entity.

Arguments

Entity Ent2

Second entity.

Arguments

number Bone1

Bone of first entity (0 for non-ragdolls)

Arguments

number Bone2

Bone of second entity (0 for non-ragdolls)

Arguments

Vector LPos1

Position on the first entity, in its local space coordinates.

Arguments

Vector LPos2

Position on the second entity, in its local space coordinates.

Arguments

number forcelimit

Amount of force until it breaks (0 = unbreakable)

Arguments

number torquelimit

Amount of torque (rotation speed) until it breaks (0 = unbreakable)

Arguments

number xmin

Minimum angle in rotations around the X axis local to the constraint.

Arguments

number ymin

Minimum angle in rotations around the Y axis local to the constraint.

Arguments

number zmin

Minimum angle in rotations around the Z axis local to the constraint.

Arguments

number xmax

Maximum angle in rotations around the X axis local to the constraint.

Arguments

number ymax

Maximum angle in rotations around the Y axis local to the constraint.

Arguments

number zmax

Maximum angle in rotations around the Z axis local to the constraint.

Arguments

number xfric

Rotational friction in the X axis local to the constraint.

Arguments

number yfric

Rotational friction in the Y axis local to the constraint.

Arguments

number zfric

Rotational friction in the Z axis local to the constraint.

Arguments

number onlyrotation

Only limit rotation, free movement.

Arguments

number nocollide

Whether the entities should be no-collided.

Returns

Entity

A phys_ragdollconstraint entity. Will return false if the constraint could not be created.
Personal tools
Navigation