ViveSoftware / ViveInputUtility-Unity

A toolkit that helps developing/prototyping VR apps.
http://u3d.as/uF7
Other
353 stars 82 forks source link

Scaling problems #43

Open JasonZX12R opened 6 years ago

JasonZX12R commented 6 years ago

When scaling the components the pose tracking does not work correctly.

lawwong commented 6 years ago

Thanks for finding the bug, RigidPose at line 147 should be

                target.position = origin.transform.TransformPoint(pose.pos);
                target.rotation = origin.rotation * pose.rot;
                //pose = new RigidPose(origin) * pose;
                //pose.pos.Scale(origin.localScale);
                //target.position = pose.pos;
                //target.rotation = pose.rot;

Please let us know if this fix your problem. We will add this fix in the next update.

lawwong commented 6 years ago

ddb3478c84b66431e61d81583f17a101003f4bdf