Part of StarfallEx namespace
๐ External
constraint.elastic(index, e1, e2, bone1, bone2, v1, v2, const, damp, rdamp, width, stretch)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Elastic constraint between two entities
Parameters
| Name | Type | Description |
|---|---|---|
index | number | Index of the elastic constraint |
e1 | Entity | The first entity |
e2 | Entity | The second entity |
bone1? | number | Number bone of the first entity. Default 0 |
bone2? | number | Number bone of the second entity. Default 0 |
v1 | Vector | Position on the first entity, in its local space coordinates |
v2 | Vector | Position on the second entity, in its local space coordinates |
const? | number | Constant of the constraint. Default 1000 |
damp? | number | Damping of the constraint. Default 100 |
rdamp? | number | Rotational damping of the constraint. Default 0 |
width? | number | Width of the created constraint. Default 0 |
stretch? | boolean | True to mark as stretch-only. Default false |
Returns
| Type | Description |
|---|---|
Constraint | The constraint entity |
Examples
No examples available.
Used In
No usages found in the codebase.