Motion
Get Motion

ReferenceScripting APIJointComponentconstructor

JointComponent.constructor

constructor

Joins two motes' bodies.

Nameconstructor
Kindconstructor of JointComponent
Called asnew JointComponent(…)
Since0.3

Syntax

new JointComponent(    name: string,    mote: Mote,    other: Mote,    joint?: MotionJointSpec): JointComponent

Parameters

NameTypeDescription
namestringIts name on the mote.
moteMoteThe first mote.
otherMoteThe mote it's joined to.
jointMotionJointSpecOptional. How they're joined (fixed when it isn't given).

See also

Mote · MotionJointSpec