Hello everyone.

We have decided to phase out the Mixed Reality Forums over the next few months in favor of other ways to connect with us.

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.

The plan between now and the beginning of May is to clean up old, unanswered questions that are no longer relevant. The forums will remain open and usable.

On May 1st we will be locking the forums to new posts and replies. They will remain available for another three months for the purposes of searching them, and then they will be closed altogether on August 1st.

So, where does that leave our awesome community to ask questions? Well, there are a few places we want to engage with you. 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. And always feel free to hit us up on Twitter @MxdRealityDev.

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

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

  • @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!

  • @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.