Skip to content

Expose Skeleton/Bone API to Lua for SkinnedMeshRenderer #677

@Gopmyc

Description

@Gopmyc

Currently, the Lua API allows controlling animations through SkinnedMeshRenderer, but does not provide access to the underlying skeleton or bones.

This makes it impossible to modify bone transforms at runtime (position, rotation, scale), which prevents implementing features such as procedural animation, IK systems, or gameplay-driven adjustments.

It would be useful to expose bones to Lua, allowing:
• Access to bones by name or index
• Reading and modifying local transforms (position, rotation, scale)

Example use case:

local iHead = skinnedMesh:GetBoneIndex("Head")
skinnedMesh:SetBoneLocalRotation(iHead, qRotation)

This would significantly improve flexibility for animation systems and scripting without requiring engine-side modifications for each use case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions