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

SFEX.constraint.elastic

S๐Ÿท๏ธ Constraint

Part of StarfallEx namespace

๐Ÿ”— External
constraint.elastic(index, e1, e2, bone1, bone2, v1, v2, const, damp, rdamp, width, stretch)
View on GitHub|lua/starfall/libs_sv/constraint.lua:300
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Elastic constraint between two entities

Parameters

NameTypeDescription
indexnumberIndex of the elastic constraint
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
const?numberConstant of the constraint. Default 1000
damp?numberDamping of the constraint. Default 100
rdamp?numberRotational damping of the constraint. Default 0
width?numberWidth of the created constraint. Default 0
stretch?booleanTrue to mark as stretch-only. Default false

Returns

TypeDescription
ConstraintThe constraint entity

Examples

No examples available.

Used In

No usages found in the codebase.