Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.constraint.ballsocketadv

S๐Ÿท๏ธ Constraint

Part of StarfallEx namespace

๐Ÿ”— External
constraint.ballsocketadv(e1, e2, bone1, bone2, v1, v2, force_lim, torque_lim, minv, maxv, frictionv, rotateonly, nocollide)
View on GitHub|lua/starfall/libs_sv/constraint.lua:252
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Ballsocket two entities together with more options

Parameters

NameTypeDescription
e1EntityThe first entity
e2EntityThe second entity
bone1?numberNumber bone of the first entity. Default 0
bone2?numberNumber bone of the second entity. Default 0
v1VectorPosition on the first entity, in its local space coordinates
v2VectorPosition on the second entity, in its local space coordinates
force_lim?numberAmount of force until it breaks, 0 = Unbreakable. Default 0
torque_lim?numberAmount of torque until it breaks, 0 = Unbreakable. Default 0
minv?VectorVector defining minimum rotation angle based on world axes. Default Vec(0)
maxv?VectorVector defining maximum rotation angle based on world axes. Default Vec(0)
frictionv?VectorVector defining rotational friction, local to the constraint. Default Vec(0)
rotateonly?booleanIf True, ballsocket will only affect the rotation allowing for free movement, otherwise it will limit both - rotation and movement. Default false
nocollide?booleanBool whether or not to nocollide the two entities. Default false

Returns

TypeDescription
ConstraintThe constraint entity

Examples

No examples available.

Used In

No usages found in the codebase.