Part of StarfallEx namespace
๐ External
constraint.axis(e1, e2, bone1, bone2, v1, v2, force_lim, torque_lim, friction, nocollide, laxis)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Axis two entities. v1 in e1's coordinates and v2 in e2's coordinates (or laxis in e1's coordinates again) define the axis
Parameters
| Name | Type | Description |
|---|---|---|
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 to center the axis, local to e1's space coordinates |
v2 | Vector | The second position defining the axis, local to e2's space coordinates. The laxis may be specified instead which is local to e1's space coordinates |
force_lim? | number | Amount of force until it breaks, 0 = Unbreakable. Default 0 |
torque_lim? | number | Amount of torque until it breaks, 0 = Unbreakable. Default 0 |
friction? | number | Friction of the constraint. Default 0 |
nocollide? | boolean | Bool whether or not to nocollide the two entities. Default false |
laxis? | Vector | Optional second position of the constraint, same as v2 but local to e1 |
Returns
| Type | Description |
|---|---|
Constraint | The constraint entity |
Examples
No examples available.
Used In
No usages found in the codebase.