Attachment
Attachment : Instance
Overview
Attachment inherits from the Instance base class and represents an attachment point for managing positioning and orientations of objects within the game world.
Description
Attachments allow developers to manipulate themselves, update their own axes directions, apply parent transformations, and maintain complex interactions between objects.
Properties
CFrame
CFrame
CFframe represents the offset of position and direction based on the parent instance
Code Samples
WorldCFrame
CFrame
WorldCFrame represents the position and orientation of an attachment in the world, derived from its parent's CFrame and local transformation.
Code Samples
Axis
Vector3
Axis is a property representing the direction of the X axis of an attachment relative to the world, stored as a unit vector
Code Samples
SecondaryAxis
Vector3
SecondaryAxis is a property of type vector3 representing the direction of a secondary axis relative to the world. It indicates additional orientation for attachments and is defined as the Y axis unit vector.
Code Samples
WorldAxis
Vector3
WorldAxis represents the direction of the X axis of the attachment relative to the world as a unit vector3
Code Samples
WorldSecondaryAxis
Vector3
WorldSecondaryAxis is a property representing the secondary axis direction of the attachment relative to the world, stored as a unit vector3
Code Samples
Methods
GetConstraints
GetConstraints is a method that returns an array of all constraints associated with the attachment. It provides a way to programmatically access and manage constraints linked to this attachment, allowing developers to create complex interactions within their applications.
Parameters
Return
array