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.
Options

Can't fully understand how "Tagalong" script works.

Hello,

I have some problems in understanding that script, to be exactly in some parts of it.

They are:
1. Why in the CalculateTagalongTargetPosition() function why have overwrited a ray instance and toPosition variable of Vector3 type two times (in the beginning and in the end respectively)? Because it makes me frustrated, I can't find out the algorithm of future position calculating.
2. Why have we created new instances of Plane class in Booleans like "moveLeft", "moveRight" and etc? Where are we going to use them?! Do they refer to the array of frustum planes? Maybe they are connected?

Here's the link to see that script. Thank you in advance!

https://github.com/holoacademy/holograms-210/blob/master/HolographicAcademy-Holograms-210-Gaze/ModelExplorer/Assets/HoloToolkit/Gaze/SimpleTagalong.cs

Best wishes,
Andrew

Answers

  • Options
    gjrgjgjrgj
    edited August 2017

    Hey @AndrewMilko , I personally think the SimpleTagalong script is too convoluted for general use. It has loads of different settings, but for 99.9% of developers most of these features aren't useful, and more often than not your tagalong objects won't behave as you want them to. I'm using SphereBasedTagalong for my application and it works like a charm.

  • Options

    @gjrgj said:
    Hey @AndrewMilko , I personally think the SimpleTagalong script is too convoluted for general use. It has loads of different settings, but for 99.9% of developers most of these features aren't useful, and more often than not your tagalong objects won't behave as you want them to. I'm using SphereBasedTagalong for my application and it works like a charm.

    That's something new and really interesting...
    Thank you for additional information about movements of objects, I need to check this out in my application!

  • Options

    @AndrewMilko After looking at the script again I realize I was actually thinking of TagAlong.cs, not SimpleTagalong. SimpleTagalong is more straightforward to use (but I would still recommend SphereBasedTagalong). Sorry for the confusion.

Sign In or Register to comment.