constraint.Axis

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

Contents

Description

Creates an axis constraint.

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 (rotational force) until it breaks (0 = unbreakable)

Arguments

number friction

Constraint friction.

Arguments

number nocollide

Whether the entities should be no-collided.

Arguments

Vector LocalAxis

If you include the LocalAxis then LPos2 will not be used in the final constraint. However, LPos2 is still a required argument.

Arguments

boolean DontAddTable

Whether or not to add the constraint info on the entity table. See constraint.AddConstraintTable.

Returns

Entity

Constraint. Will return false if the constraint could not be created.
Personal tools
Navigation