Attachment

Hiển Thị Bản Đã Lỗi Thời

*Nội dung này sẽ sớm có sẵn bằng ngôn ngữ bạn chọn.

An Attachment defines a point and orientation relative to a parent BasePart, Bone, or another Attachment. The offset is stored in the CFrame property. The offset can also be set through other properties, such as WorldCFrame.

Attachments are used by several kinds of Constraints and are also valid alternatives to BasePart as a parent for objects such as:

  • ParticleEmitters which will emit particles from the attachment's specific position/orientation instead of the BasePart bounds.
  • Light-emitting objects like PointLight and SpotLight which will shine from the attachment's position/orientation instead of the BasePart center.
  • Sound which will use the attachment's position as the sound's focal point, instead of the BasePart center.

Tóm Tắt

Thuộc Tính

  • Không Sao Chép
    Đọc Song Song

    Direction of the X axis of the attachment, represented as a unit Vector3.

  • Đọc Song Song

    CFrame offset of the attachment.

  • Ẩn
    Không Sao Chép
    Đọc Song Song

    Orientation of the attachment relative to the orientation of its parent.

  • Ẩn
    Không Sao Chép
    Đọc Song Song

    Positional offset of the attachment, relative to the position and orientation of its parent.

  • Không Sao Chép
    Đọc Song Song

    Direction of the Y axis of the attachment, represented as a unit Vector3.

  • Đọc Song Song

    Toggles the in-experience visibility of the attachment.

  • Không Sao Chép
    Đọc Song Song

    Direction of the X axis of the attachment relative to the world, represented as a unit Vector3 with a length of 1.

  • Không Sao Chép
    Đọc Song Song

    The exact CFrame of the attachment in world space coordinates.

  • Ẩn
    Không Sao Chép
    Đọc Song Song

    Orientation of the attachment relative to the world rather than its own parent.

  • Ẩn
    Không Sao Chép
    Đọc Song Song

    Position of the attachment relative to the world rather than its own parent.

  • Không Sao Chép
    Đọc Song Song

    Direction of the Y axis of the attachment relative to the world, represented as a unit Vector3 with a length of 1.

Thuộc Tính

Không Sao Chép
Đọc Song Song

Direction of the X axis of the attachment, represented as a unit Vector3.

CFrame

Đọc Song Song

The CFrame offset of the attachment. Changes to this property will reflect onto the Position and Rotation properties of this object. Similarly, a change to either of those properties will reflect onto this property.

Orientation

Ẩn
Không Sao Chép
Đọc Song Song

Orientation of the attachment relative to the orientation of its parent. Rotations are in ZXY order.

Position

Ẩn
Không Sao Chép
Đọc Song Song

Positional offset of the attachment, relative to the position and orientation of its parent.

SecondaryAxis

Không Sao Chép
Đọc Song Song

Direction of the Y axis of the attachment, represented as a unit Vector3.

Visible

Đọc Song Song

Toggles the in-experience visibility of the attachment.

WorldAxis

Không Sao Chép
Đọc Song Song

Direction of the X axis of the attachment relative to the world, represented as a unit Vector3 with a length of 1.

WorldCFrame

Không Sao Chép
Đọc Song Song

The exact CFrame of the attachment in world space coordinates, independent of its parent. The value of this property is equivalent to multiplying the CFrame of the attachment's parent by its own CFrame.

WorldOrientation

Ẩn
Không Sao Chép
Đọc Song Song

Orientation of the attachment relative to the world rather than its own parent. Rotations are in ZXY order.

WorldPosition

Ẩn
Không Sao Chép
Đọc Song Song

Position of the attachment relative to the world rather than its own parent.

WorldSecondaryAxis

Không Sao Chép
Đọc Song Song

Direction of the Y axis of the attachment relative to the world, represented as a unit Vector3 with a length of 1.

Phương Pháp

GetConstraints

Instances

Returns a list of Constraints connected to the attachment.


Lợi Nhuận

Instances

Sự Kiện