As you may already know Attachment CFrames are relative to their parent part. This means the point of origin for an Attachment is at the center of its parent. We have properties for all the Attachment’s CFrame data converted to world space, but these have been read only.
Now, you can set the world data for Attachments. Specifically, the properties are:
WorldPosition
WorldOrientation
WorldAxis
WorldSecondaryAxis
WorldCFrame
Generally, you should still be setting the local version of these properties when you can, but this change should make building easier as you can now quickly put 2 different attachments in the same position, or set an axis to align with the world axis. Also you can easily position an attachment anywhere in the world without needing to move the parent part.
With this addition, we are deprecating the Attachment functions:
Vector3 GetAxis()
Vector3 GetSecondaryAxis()
void SetAxis(Vector3 axis)
void SetSecondaryAxis(Vector3 axis)
These getter/setter functions were never needed since the Axis and SecondaryAxis properties could always be set directly. We will not be creating getter/setter functions for WorldAxis and WorldSecondaryAxis.
Note: There is no addition of a settable WorldRotation property as the Attachment.Rotation property is also deprecated. Orientation or either of the Axis properties should be used instead.
Not much. The only thing this does is simplify what you could do before. Instead of having to convert world rotation to local rotation, you can use the new property here. As for the position property, you could easily convert Vector3s to local space using the built in functions.
Looks like most of the properties that used to say rotation has been renamed to orientation. Maybe it is a more appropriate term to use for 3D objects.
Any chance you guys can unlock the strict Parent requirements on Attachments so we can stop putting them in Terrain and start storing them in folders & scripts?
Sorry that was worded poorly, I guess what I meant was the addition of letting you set WorldRotation. We had Rotation and WorldRotation marked as deprecated, but they were tagged incorrectly. I’ve edited the post to be more clear.