Attachment

显示已弃用

*此内容使用人工智能(Beta)翻译,可能包含错误。若要查看英文页面,请点按 此处

一个 Attachment 定义了与父 BasePartBone 或其他 Attachment 相对的点和方向。抵消值存储在 CFrame 属性中。抵消也可以通过其他属性设置,例如 WorldCFrame

附件被几种类型的 Constraints 使用,也是对 BasePart 作为对象父级的有效替代方案:

  • ParticleEmitters 将从附件的特定位置/方向发射粒子,而不是从 BasePart 边界。
  • PointLightSpotLight 这样的发光对象,将从附件的位置/方向发光,而不是从 BasePart 中心。
  • 将使用附件的位置作为声音的焦点,而不是中心。

概要

属性

属性

未复制
读取并联

CFrame

读取并联

Orientation

隐藏
未复制
读取并联

Position

隐藏
未复制
读取并联

SecondaryAxis

未复制
读取并联

Visible

读取并联

WorldAxis

未复制
读取并联

WorldCFrame

未复制
读取并联

WorldOrientation

隐藏
未复制
读取并联

WorldPosition

隐藏
未复制
读取并联

WorldSecondaryAxis

未复制
读取并联

方法

GetConstraints

Instances

返回

Instances

活动