Garry's Mod Wiki

constraint.Elastic

constraint.Elastic

Entity, Entity constraint.Elastic( Entity Ent1, Entity Ent2, number Bone1, number Bone2, Vector LPos1, Vector LPos2, number constant, number damping, number rdamping, string material, number width, boolean stretchonly, table color )

Description

Creates an elastic constraint.

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 of first end of the rope. Local to Ent1.
6 Vector LPos2
Position of second end of the rope. Local to Ent2.
7 number constant
8 number damping
9 number rdamping
10 string material
The material of the rope.
11 number width
Width of rope.
12 boolean stretchonly
13 table color
The color of the rope. See Color.

Returns

1 Entity
Constraint. Will return false if the constraint could not be created.
2 Entity
rope. Will return nil if the constraint could not be created.

Special Pages


Wikis

?

Render Time: 76ms

DB GetPage 44
Generate Html 16
SaveChanges (1) 6
Render Body 0
Render Sidebar 6