Make Joint
Joins two motes' bodies: as one, turning, sliding, on a spring or a rope.
ƒMake Joint
AJoint
B
KindRope
Length100
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
in | what happens next | – | – |
Aa | mote | – | – |
Bb | mote | – | – |
Kindkind | choice | Rope | One of: Fixed, Hinge, Slider, Spring, Rope. |
Lengthlength | number | 100 | – |
Outputs
| Pin | Type |
|---|---|
then | what happens next |
Jointjoint | int |
The code it becomes
The graph below written as a script would write it.
let s2_joint = 0;// On Scene Starts2_joint = stage.join("", "", { kind: ["fixed", "hinge", "slider", "spring", "rope"][Math.max(0, Math.min(4, Math.round(4)))], length: 100 });scene.log(s2_joint);In a graph
◆On Scene Start
ƒMake Joint
AJoint
B
KindRope
Length100
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.