i have a virtual hand model, and i wish to rotate the finger joint to perform a releasing action. i have use code above to achieve to rotation. However the TMetacarpal.transform.localRotation.y act weird. Sometime return positive value sometime return negative value. The correct value should be negative value -0.3360 however sometime it return positive value 0.3360. Anyone have any idea about it?
(comments are locked)
|
|
It is quite probable that your LOCAL axes are oriented differently from your GLOBAL axes for the finger transform. easy fix (drawback is that this makes your routine model-dependent):
hard fix <= which I suggest only after the easy fix works, and only if necessary, so we'll get to it afterwards my finger rotation is ok. is just the TMetacarpal.transform.localRotation.y act weird. Sometime return positive value sometime return negative value. it make the if statement not run well. because TMetacarpalRotationY is 0.3360. If TMetacarpal.transform.localRotation.y give me the positive value then my finger rotation will not running.
Aug 09 '11 at 05:41 AM
lam meng chun
as i wrote: It is quite probable that your LOCAL axes are oriented differently from your GLOBAL axes for the finger transform. this is a problem that can happen with ALL transforms, and the easy solution works on them all.
Aug 09 '11 at 11:26 AM
roamcel
(comments are locked)
|
