WrapDeformer
Allows for the real-time deformation of a MeshPart.
Memory category | Instances |
---|
Member index 3
Removed member index 4
History | Member | |
---|---|---|
646 | Amount: float | |
646 | Enabled: bool | |
646 | RenderMeshID: ContentId | |
647 | GetDeformedCFrame(originalCFrame: CFrame): CFrame |
Description
The WrapDeformer object provides a low-resolution cage mesh that pairs with a WrapTarget sibling to deform a parent MeshPart. The MeshPart geometry is deformed according to the displacement between pairs of WrapTarget cage mesh vertices and WrapDeformer cage mesh vertices. Cage mesh vertices are paired based on UV equivalence.
WrapDeformer may be used with avatars or on distinct MeshParts, as long as WrapTarget children are present for the parent MeshParts. WrapDeformer is similar to WrapLayer but doesn't require layered clothing and can directly deform MeshParts for publishing.
History 15
- 654 Change Tags of WrapDeformer from [NotBrowsable] to []
- 648 Add SetCageMeshContent
- 648 Change ReturnType of CreateEditableMeshAsync from EditableMesh to Object
- 647 Add GetDeformedCFrameAsync
- 647 Remove GetDeformedCFrame
- 646 Add GetDeformedCFrame
- 646 Add CreateEditableMeshAsync
- 646 Remove RenderMeshID
- 646 Remove Enabled
- 646 Remove Amount
- 645 Change ValueType of RenderMeshID from Content to ContentId
- 634 Add RenderMeshID
- 634 Add Enabled
- 634 Add Amount
- 634 Add WrapDeformer
Members 3
CreateEditableMeshAsync
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
Object |
Constructs and returns an 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 FixedSize to true
.
Thread safety | Unsafe |
---|
History 2
- 648 Change ReturnType of CreateEditableMeshAsync from EditableMesh to Object
- 646 Add CreateEditableMeshAsync
GetDeformedCFrameAsync
Parameters (1) | ||
---|---|---|
originalCFrame | CFrame | |
Returns (1) | ||
CFrame |
Returns a CFrame deformed by the same deformation field used for the geometry of the parent MeshPart. This method is useful for the placement of accessories.
The input and output CFrame are both in the space of the parent MeshPart; only position (not rotation) will be deformed. This method respects all updates made to the deformation inputs prior to the request.
Thread safety | Unsafe |
---|
History 1
SetCageMeshContent
Parameters (1) | ||
---|---|---|
content | Content | |
Returns (1) | ||
null |
Sets the cage mesh used to deform the parent MeshPart in
conjunction with a sibling WrapTarget cage mesh. The content
parameter should represent a Roblox mesh asset ID or an
EditableMesh reference in your DataModel.
Thread safety | Unsafe |
---|
History 1
Removed members 4
Amount
Type | Default | |
---|---|---|
float | 1 |
Write security | PluginSecurity |
---|---|
Thread safety | ReadSafe |
Category | Tuning |
Loaded/Saved | true |
Enabled
Type | Default | |
---|---|---|
bool | true |
Thread safety | ReadSafe |
---|---|
Category | Behavior |
Loaded/Saved | true |
GetDeformedCFrame
Parameters (1) | ||
---|---|---|
originalCFrame | CFrame | |
Returns (1) | ||
CFrame |
Thread safety | Unsafe |
---|
History 2
- 647 Remove GetDeformedCFrame
- 646 Add GetDeformedCFrame
RenderMeshID
Type | Default | |
---|---|---|
ContentId |
Write security | PluginSecurity |
---|---|
Thread safety | ReadSafe |
Category | Appearance |
Loaded/Saved | true |
History 3
- 646 Remove RenderMeshID
- 645 Change ValueType of RenderMeshID from Content to ContentId
- 634 Add RenderMeshID