31
Bones / Rotating joints
« on: December 28, 2015, 08:11:02 pm »
I am currently working with ProceduralAnimationSample and I am trying to get our beloved seymour to wave at me. I am having trouble getting his palm to face me. I have the arm waving at me with his palm facing the void adjacent to him with the code below:
When I attempt to use the same method targetJoint for the wrist, I can get his fingers to point at me, but it does not rotate. I think I might need to do something to currentPose, but I am not sure.
Thanks for any insight.
Code: [Select]
//elbow oscillatory motion
targetJoint(currentPose, 11, new SimpleVector(-1, 0, 0), new SimpleVector(-1 + Math.cos(seconds) * 5, -20, 0), 1.0f);
When I attempt to use the same method targetJoint for the wrist, I can get his fingers to point at me, but it does not rotate. I think I might need to do something to currentPose, but I am not sure.
Thanks for any insight.