Hallo,
I want to rotate bones from a blender model. Years ago I wrote a small games with blender game engine which worked well but now bge is removed so I want to migrate to godot.
My first exercise is to rotate objects that a parented with a bone. I created the object and bones in blender and exported them as glTF. I used https://docs.godotengine.org/en/3.0/tutorials/3d/working_with_3d_skeletons.html as reference but I can not load the project in godot3, the files can not be read.
My nodes are:
Node Armature is of type Skeleton. But when I want to create a script an inherit from Skeleton I get an error
Script inherits from native type 'Skeleton', so it can't be instanced in object of type: 'Spatial'
.
My code is:
extends Skeleton # typ is skeleton, so should work but gives error
var skel
# Called when the node enters the scene tree for the first time.
func _ready():
skel = get_node("BoneUnten")
print("skel id: ", skel)
var count = skel.get_bone_count()
print("bone count:", count)
pass # Replace with function body.
Whats wrong?