-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
Copy pathWrapDeformer.yaml
100 lines (98 loc) · 3.33 KB
/
WrapDeformer.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: WrapDeformer
type: class
category:
memory_category: Instances
summary: |
Allows for the real-time deformation of a `Class.MeshPart`.
description: |
The `Class.WrapDeformer` object provides a low-resolution cage mesh that pairs
with a `Class.WrapTarget` sibling to deform a parent `Class.MeshPart`. The
`Class.MeshPart` geometry is deformed according to the displacement between
pairs of `Class.WrapTarget` cage mesh vertices and `Class.WrapDeformer` cage
mesh vertices. Cage mesh vertices are paired based on UV equivalence.
`Class.WrapDeformer` may be used with avatars or on distinct
`Class.MeshPart|MeshParts`, as long as `Class.WrapTarget` children are present
for the parent `Class.MeshPart|MeshParts`. `Class.WrapDeformer` is similar to
`Class.WrapLayer` but doesn't require layered clothing and can directly deform
`Class.MeshPart|MeshParts` for publishing.
code_samples: []
inherits:
- BaseWrap
tags: []
deprecation_message: ''
properties: []
methods:
- name: WrapDeformer:SetCageMeshContent
summary: |
Sets the cage mesh used to deform against a sibling `Class.WrapTarget`
cage mesh.
description: |
Sets the cage mesh used to deform the parent `Class.MeshPart` in
conjunction with a sibling `Class.WrapTarget` cage mesh. The `content`
parameter should represent a Roblox mesh asset ID or an
`Class.EditableMesh` reference in your `Class.DataModel`.
code_samples: []
parameters:
- name: content
type: Content
default:
summary: ''
returns:
- type: void
summary: ''
tags: []
deprecation_message: ''
security: None
thread_safety: Unsafe
capabilities: []
writeCapabilities: []
- name: WrapDeformer:CreateEditableMeshAsync
summary: |
Returns an `Class.EditableMesh` (currently unskinned) equivalent to the
deformed parent mesh.
description: |
Constructs and returns an `Class.EditableMesh` corresponding to the
deformed parent mesh geometry. This method respects all updates made to
the deformation inputs prior to the request. It also sets the returned
result's `Class.EditableMesh.FixedSize|FixedSize` to `true`.
code_samples: []
parameters: []
returns:
- type: Object
summary: ''
tags:
- Yields
deprecation_message: ''
security: None
thread_safety: Unsafe
capabilities: []
writeCapabilities: []
- name: WrapDeformer:GetDeformedCFrameAsync
summary: |
Returns a `Datatype.CFrame` deformed comparably to the `Class.MeshPart`.
description: |
Returns a `Datatype.CFrame` deformed by the same deformation field used
for the geometry of the parent `Class.MeshPart`. This method is useful for
the placement of accessories.
The input and output `Datatype.CFrame` are both in the space of the parent
`Class.MeshPart`; only position (not rotation) will be deformed. This
method respects all updates made to the deformation inputs prior to the
request.
code_samples: []
parameters:
- name: originalCFrame
type: CFrame
default:
summary: ''
returns:
- type: CFrame
summary: ''
tags:
- Yields
deprecation_message: ''
security: None
thread_safety: Unsafe
capabilities: []
writeCapabilities: []
events: []
callbacks: []