/
RigidConstraint.yaml
44 lines (39 loc) · 1.81 KB
/
RigidConstraint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: RigidConstraint
type: class
category: Constraints
memory_category: PhysicsParts
summary: |
Creates a rigid connection between two `Class.Attachment|Attachments` or
`Class.Bone|Bones`.
description: |
**RigidConstraint** connects two `Class.Attachment|Attachments` or
`Class.Bone|Bones` and ensures they stay in the same relative
position/orientation to each other. This flexibility gives it additional
functionality beyond `Class.WeldConstraint`, such as attaching accessories to
`Class.Attachment|Attachments` on a character rig.
The fastest way to create this constraint is by selecting
**Rigid Constraint** through Studio's **Create** menu in the
[Model](../../../studio/model-tab.md) tab.
<img src="../../../assets/studio/general/Model-Tab-Constraints-Create-Menu.png" width="754" alt="Constraint picker indicated in Studio toolbar" />
Note that this tool behaves differently depending on whether you click on
existing `Class.BasePart|BaseParts`, `Class.Attachment|Attachments`, or
`Class.Bone|Bones` after the tool is activated:
- Clicking on an existing `Class.BasePart` creates a new `Class.Attachment`
upon it as the intended `Class.RigidConstraint.Attachment0` or
`Class.RigidConstraint.Attachment1`.
- Clicking on an existing `Class.Attachment` or `Class.Bone` uses that
instance as the intended `Class.RigidConstraint.Attachment0` or
`Class.RigidConstraint.Attachment1`.
Following the second valid click, a new `Class.RigidConstraint` is created to
connect the two new attachments. If either the first or second click is
**not** made on a `Class.BasePart`, `Class.Attachment`, or `Class.Bone`, the
workflow is canceled and no constraint is created.
code_samples: []
inherits:
- Constraint
tags: []
deprecation_message: ''
properties: []
methods: []
events: []
callbacks: []