The GetBoneLocalTransform
method retrieves the local transform of a specified bone within a SceneModel
. This transform is relative to the bone's parent in the model's hierarchy.
The GetBoneLocalTransform
method retrieves the local transform of a specified bone within a SceneModel
. This transform is relative to the bone's parent in the model's hierarchy.
To use the GetBoneLocalTransform
method, you need to provide the index of the bone whose local transform you want to retrieve. The method returns a Transform
object representing the local position, rotation, and scale of the specified bone.
// Example of using GetBoneLocalTransform SceneModel model = new SceneModel(); int boneIndex = 5; // Example bone index Transform boneTransform = model.GetBoneLocalTransform(boneIndex); // Use the transform Vector3 localPosition = boneTransform.Position; Rotation localRotation = boneTransform.Rotation; Vector3 localScale = boneTransform.Scale;