yaelatletl / godot-jigglebones

An addon that brings jigglebones to Godot Engine 4.0.
MIT License
115 stars 4 forks source link

Debugger Errors: Index p_bone = -1 is out of bounds (bone_size = 7) #10

Closed manujarvinen closed 10 months ago

manujarvinen commented 10 months ago

I did everything like in the instructions and I'm getting these errors per every frame :( Index p_bone = -1 is out of bounds (bone_size = 7)

Other than the errors, everything functions just fine, I like how it jiggles :)

What to do?

image

car_antenna

Genesis412 commented 10 months ago

I did everything like in the instructions and I'm getting these errors per every frame :( Index p_bone = -1 is out of bounds (bone_size = 7)

Other than the errors, everything functions just fine, I like how it jiggles :)

What to do?

image

car_antenna car_antenna

Had the same issue. Fixed by parenting the bones that i wanted to jiggle to another part of the skeleton that was not influenced by jiggle.

manujarvinen commented 10 months ago

Thank you Genesis412! That solved it!

Or in other words: just add a root bone, that you are not going to jiggle and parent the bones that you will jiggle onto the root bone.

I shall close this as resolved now :)