ReferenceScripting APIJointComponentconstructor
JointComponent.constructor
constructorJoins two motes' bodies.
| Name | constructor |
|---|---|
| Kind | constructor of JointComponent |
| Called as | new JointComponent(…) |
| Since | 0.3 |
Syntax
new JointComponent( name: string, mote: Mote, other: Mote, joint?: MotionJointSpec): JointComponentParameters
| Name | Type | Description |
|---|---|---|
name | string | Its name on the mote. |
mote | Mote | The first mote. |
other | Mote | The mote it's joined to. |
joint | MotionJointSpec | Optional. How they're joined (fixed when it isn't given). |
See also
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.