缩裹约束¶
The Shrinkwrap constraint snaps an object or bone to the surface of a mesh. It's similar to the 缩裹修改器, which snaps every vertex of a mesh to the surface of another.
Like other constraints, the Shrinkwrap constraint ignores the geometry of its owner object and purely works with its origin. This means that, if the origin is at the object's center, the object will clip into the target mesh instead of sitting on its surface. This can be mitigated with the Distance setting.
选项¶
缩裹约束。¶
- 目标
要吸附到的网格物体。
- 距离
How far to stay away from the surface.
- 模式
How to find the point to snap to.
- 最近的表面点:
Snap to the surface point that's closest to the constraint owner's original location.
- 投影:
Project the owner's original location along a certain axis and snap to the first intersection with the target surface. See Project Mode Settings.
- 最近的顶点:
Snap to the mesh vertex that's closest to the owner's original location.
- 目标法线投影:
Snap to the nearest surface point that, if projected along its normal, intersects the constraint owner's original location.
This mode produces better results than Nearest Surface Point but is also slower to calculate. In addition, the surface normal is obtained by interpolating the surrounding vertex normals, which may not match the expected normal if the mesh uses flat shading.
- 吸附模式
Determines how the Distance offset is applied.
- 表面:
Snap to the point that's Distance away from the surface and is on the same side as the owner's original location: if the owner was previously outside the mesh, it stays outside, and if it was inside, it stays inside.
- 表面外围:
Snap to the point that's Distance away from the surface and is on the outside, regardless of where the owner was originally.
- 表面上方:
Like Outside Surface, but applies the offset along the interpolated surface normal. (The other modes apply it along the line between the constraint owner's original location and the snapping point on the target surface).
- 向内:
"Shrinks" the mesh by Distance and traps the owner inside it. (If the owner was already inside the shrunk volume, the constraint does nothing.)
- 向外:
"Inflates" the mesh by Distance and pushes the owner out of it. (If the owner was already outside the inflated volume, the constraint does nothing.)
The Inside and Outside modes can be used for very crude collision detection. Because they only check the closest face of the target mesh, they won't give the expected result near sharp corners.
If Mode is set to Nearest Vertex, this setting is not available and the constraint owner is simply snapped to the nearest location that's Distance away from the nearest vertex, regardless of any surface normals.
- 与法向对齐
Aligns the specified local axis of the owner to the interpolated surface normal of the target. This is done using a swing rotation.
Not available for the Nearest Vertex mode.
- 影响
How strongly the constraint affects the owner.
投影模式设置¶
- 投影轴
The axis and direction to project along. If no intersection is found, the owner's location is left unchanged.
- 空间
Coordinate space for the projection axis.
- 距离
Distance cutoff after which projection is assumed to have failed, leaving the location unchanged. A value of 0 means there's no limit.
- 反向投影
Also project in the opposite direction (along the same axis).
- 面剔除
- 关闭:
Snap to the first encountered face regardless of its normal.
- 前:
Don't snap if the projection hit the front side of a face (specifically, if the normal of the face points towards the constraint owner). In general, this means the owner will get snapped to the surface if it's inside the target mesh, and keep its original location otherwise.
- 后:
Don't snap if the projection hit the back side of a face (specifically, if the normal of the face points away from the constraint owner). In general, this means the owner will get snapped to the surface if it's outside the target mesh, and keep its original location otherwise.
- 反向剔除:
If Project Opposite is enabled and an intersection is found in this opposite direction, use the opposite Face Cull option (so Back if Front was chosen and vice versa).