Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.

best way to implement the 3 function of scale,rotate,manipulate on UI

i wanna combine that function in a box like skype but when i choose a option start and go crazy here example:

//when i airtab and hold check
if (Test.CanScale == false && Test.CanRotate == true && Test.CanManipulate == false && FocusedObject.name == "TestingCube")
{

            Test.RotateObjectOverManipulation(initPos + handPosition, true);

        }

on the Test.RotateObjectOverManipulation(initPos + handPosition, true) is

public void RotateObjectOverManipulation(Vector3 mTrasform,bool CanRotates)
{


    // si esta
    if (CanRotates == false)
    {
        return;
    }


    float rotationFactor_X = mTrasform.y * RotationSensitivity;
    float rotationFactor_Y =  mTrasform.x * RotationSensitivity;
    float rotationFactor_Z = mTrasform.z * RotationSensitivity;

    // Calculate rotationFactor based on HandMove.cs NavigationPosition.X and multiply by RotationSensitivity.
    // This will help control the amount of rotation.      
    //  transform.Rotate along the z axis
    transform.Rotate(new Vector3(0, -1 * rotationFactor_X, 0));    

}

the thiing is , when i activate this function my game object start rotate when my hand is still, i just wanna have a smooth movement

Answers

  • I think I'd need to see how initPos and handPosition are managed. Just based on what I've seen I'd guess that
    initPos + handPosition
    should really be
    handPosition - initPos

    ===
    This post provided as-is with no warranties and confers no rights. Using information provided is done at own risk.

    (Daddy, what does 'now formatting drive C:' mean?)

Sign In or Register to comment.