JointInstance
The base class for joints.
| Memory category | BaseParts |
|---|
Member index 7
Description
JointInstance is the base class for joints such as Welds and
Motors.
Weld, WeldConstraint, Motor, and Motor6D all combine multiple parts into the same assembly. Every assembly has a root part (BasePart:GetRootPart()) and when C0/C1 of a JointInstance is modified, the root part will stay where it was.
Welds do not have any directionality. You can imagine rigid joints forming a tree branching down from the root part. All the parts down the tree from root will move, and their welded "children" in this tree will move with them.
History 37
- 693 Change MemoryCategory of JointInstance from PhysicsParts to BaseParts
- 553 Change PreferredDescriptor of from to Part1
- 553 Change Default of from to
- 553 Change Default of Part1 from to
- 553 Change Default of Part0 from to
- 553 Change Default of Enabled from to
- 553 Change Default of C1 from to
- 553 Change Default of C0 from to
- 553 Change Default of Active from to
- 486 Change ThreadSafety of from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Part1 from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Part0 from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Enabled from ReadOnly to ReadSafe
- 486 Change ThreadSafety of C1 from ReadOnly to ReadSafe
- 486 Change ThreadSafety of C0 from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Active from ReadOnly to ReadSafe
- 462 Change ThreadSafety of from to ReadOnly
- 462 Change ThreadSafety of Part1 from to ReadOnly
- 462 Change ThreadSafety of Part0 from to ReadOnly
- 462 Change ThreadSafety of Enabled from to ReadOnly
- 462 Change ThreadSafety of C1 from to ReadOnly
- 462 Change ThreadSafety of C0 from to ReadOnly
- 462 Change ThreadSafety of Active from to ReadOnly
- 423 Change Tags of Enabled from [Hidden] to []
- 408 Add Enabled
- 379 Change CanSave of Active from true to false
- 360 Add Active
- 329 Change ValueType of from Object to BasePart
- 329 Change ValueType of Part1 from Object to BasePart
- 329 Change ValueType of Part0 from Object to BasePart
- 50 Change Tags of from [NotReplicated, Deprecated] to [Hidden, NotReplicated, Deprecated]
- 49 Add
- 47 Add Part1
- 47 Add Part0
- 47 Add C1
- 47 Add C0
- 47 Add JointInstance
Members 7
Active
| Type | Default | |
|---|---|---|
| bool | ||
This property determines if the joint is currently active in the world.
If the JointInstance is not in Workspace or JointsService, or one of its parts is not in Workspace, the joint will be inactive.
Rigid joints like Weld, Snap, WeldConstraint, Motor, or Motor6D may also be disabled due to conflicts with other rigid joints, such as joints between the same two parts or indirect cycles in the weld graph. Joints disabled this way may be re-enabled later when another joint or part is added or removed.
| Thread safety | ReadSafe |
|---|---|
| Category | Behavior |
| Loaded/Saved | false |
C0
| Type | Default | |
|---|---|---|
| CFrame | ||
C0 is the position aspect of the orientation between two parts in a
weld. Part0 and
Part1 move accordingly to this value, which
denotes their respective positions.
When animating a Motor6D, it's recommended to tween its
Transform property instead of C0.
| Thread safety | ReadSafe |
|---|---|
| Category | Data |
| Loaded/Saved | true |
C1
| Type | Default | |
|---|---|---|
| CFrame | ||
This property is subtracted from the C0 property to create an offset point for Part1.
When animating a Motor6D, it's recommended to tween its
Transform property instead of C1.
| Thread safety | ReadSafe |
|---|---|
| Category | Data |
| Loaded/Saved | true |
Enabled
| Type | Default | |
|---|---|---|
| bool | ||
This property sets whether the joint is active or not.
When this property is set to true and the joint's
Part0 and Part1
properties are set, the joint will ensure that its two parts will be
connected and behave according to joint type.
See also Active which determines if the joint is currently active in the world.
| Thread safety | ReadSafe |
|---|---|
| Category | Behavior |
| Loaded/Saved | true |
Part0
| Type | Default | |
|---|---|---|
| BasePart | ||
This property indicates the first BasePart that the joint connects.
| Thread safety | ReadSafe |
|---|---|
| Category | Data |
| Loaded/Saved | true |
Part1
| Type | Default | |
|---|---|---|
| BasePart | ||
This property indicates the second BasePart that the joint connects.
| Thread safety | ReadSafe |
|---|---|
| Category | Data |
| Loaded/Saved | true |