Bone
Bone : Attachment
Overview
A Bone is an instance that is not directly displayed on the screen but is used to create animations or control the movement of character models.
When the game runs, the bone structure can be observed in the lower hierarchy of the character model created in the Workspace, and it can also be viewed in the Animation Editor. The Animation Editor allows for easier creation of animation by manually controlling the character's bones.
Properties
Transform
CFrame
This property represents the position and rotation changes applied by the current animation, relative to the Bone's CFrame.
Code Samples
local Bone = Character.Skeleton.Root.IKFootRoot.IKLeftFoot
print(Bone.Transform)
TransformedCFrame
CFrame
It provides the final CFrame value that is the sum of the Bone's CFrame position and Transform (the offset from the current animation) in the local coordinate system.
Code Samples
local Bone = Character.Skeleton.Root.IKFootRoot.IKLeftFoot
print(Bone.TransformedCFrame)
TransformedWorldCFrame
CFrame
It provides the final CFrame value that is the sum of the Bone's CFrame position and Transform (the offset from the current animation) in the world coordinate system.
Code Samples
local Bone = Character.Skeleton.Root.IKFootRoot.IKLeftFoot
print(Bone.TransformedWorldCFrame)
Methods
Events
See also
CharacterAnimation EditorLast updated