@Dazzid_of wrote:
Hi
I'm trying to reset the myo position of a cube to the center when a person is pointing to the screen wearing the myo on the right hand.
I'm using ofNode with two objects, one is "myArm" as a generic object and "geometry" that is the cube that appears in the screen. Myo rotates "geometry". I'm trying to center "geometry" by multiply myArm quaternion by the inverse quaterion of "geometry" called "center", buuuut it doesn't work.
Any suggestion?void Arm::reset(ofQuaternion inRotation){ ofQuaternion center = inRotation.inverse(); myArm.rotate(myArm.getGlobalOrientation() * center); }
Posts: 4
Participants: 2