Part of StarfallEx namespace
๐ External
constraint.ballsocketadv(e1, e2, bone1, bone2, v1, v2, force_lim, torque_lim, minv, maxv, frictionv, rotateonly, nocollide)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Ballsocket two entities together with more options
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 on the first entity, in its local space coordinates |
v2 | Vector | Position on the second entity, in its local 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 |
minv? | Vector | Vector defining minimum rotation angle based on world axes. Default Vec(0) |
maxv? | Vector | Vector defining maximum rotation angle based on world axes. Default Vec(0) |
frictionv? | Vector | Vector defining rotational friction, local to the constraint. Default Vec(0) |
rotateonly? | boolean | If True, ballsocket will only affect the rotation allowing for free movement, otherwise it will limit both - rotation and movement. Default false |
nocollide? | boolean | Bool whether or not to nocollide the two entities. Default false |
Returns
| Type | Description |
|---|---|
Constraint | The constraint entity |
Examples
No examples available.
Used In
No usages found in the codebase.