Unsolved Moving a 3D Model
-
Hello,
I have a question. I want to create a robot in qt3d, which can walk. I have tried and seen different approaches ... for example making a blender object and performing an animation on it (also created in blender). But actually I want to have some kind of inverse kinematics -> So I want to say the end effector should move up by ... cm. But I have seen no way to make this. Is there any way to have inverse kinematic or control at least the angle of the joints?
Thanks!
-
I found out that the armature component and the skeleton/Joint class may be what I have searched for. Thorugh the skeleton I can change the rotation of the joints etc.
Unfortunately, I don't know how I can access it ... because it first has to be loaded and I have no idea when and how I can change it (thought about a MouseArea, but don't know how to do it ... ObjectPicker didn't work).Armature { id: testArmature skeleton: SkeletonLoader { id: skeleton source: root.source onStatusChanged: rootJoint.rotationX = 20 onJointCountChanged: rootJoint.rotationY = -10 } },
Changing the rotation of the rootJoint through the onStatusChanged signal handler didn't work either. Gives me the error "TypeError: Type error".
I would appreciate any help! I hope I am on the right way.
-
Does anyone know a solution?