Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getBoneProp return nil? #1

Open
lenlenlL6 opened this issue Jul 11, 2024 · 1 comment
Open

getBoneProp return nil? #1

lenlenlL6 opened this issue Jul 11, 2024 · 1 comment

Comments

@lenlenlL6
Copy link

skeletor__ = require('libs/skeletor/skeletor')

function love.load()
    skeletor = skeletor__()
    skeletor:newSkeleton("joe")
    skeletor:newBone('joe.arm', {
        length = 100,
        angle = math.rad(90),
        wireStyle = "rough",
        wireColor = {23, 42, 255},
        wireWidth = 5
    })
end

function love.update(dt)
    local angle_ = skeletor:getBoneProp('joe.arm', "angle")
    skeletor:editBone("joe.arm", {
        angle = angle_ + dt
    })
end

function love.draw()
    skeletor:draw()
end
@pelevesque
Copy link
Owner

pelevesque commented Jul 29, 2024

Hey, just saw your comment. I haven't looked at this code for ages, but will have a check as soon as possible. Hopefully this week. Thanks for taking the time to report an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants