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.
Game Object doesn't stay fixed in its place
Hello,
I'm procedurally generating a game object which is a map tile. Problem is, after the generation both in Unity and in HoloLens, object does not stay in its location but changes position relative to my head's location. Thus, I can't look at it from other angles or I can't get close to it. This doesn't happen on any other object and I couldn't find any related question on the web. Here is a video of the problem;
Note: Origami objects are there just for reference. They work without any issue.
Any help is greatly appreciated.
Thanks!
Best Answer
-
Optionsyusuf ✭
I ended up using another model with from-scratch Unity application, however, same problem occurred. I believe the problem was the size of the hologram. I decreased the size of my hologram to the size of the Origami stage, and it worked! Stayed fixed in the 3d world, and I was able to look around.
1
Answers
Silly question but is the object a child of the camera? Also follow up question, how is its position being modified? Maybe disable its update function to see if it happens.
http://www.redsprocketstudio.com/
Developer | Check out my new project blog
What behaviors are attached to the object? Seems like there may be a follow behavior on there that is enabled in editing mode.
Taqtile
@AmerAmer Not at all! I appreciate the feedback and brainstorming.
1) Object is not a child of the camera
2) Update function is empty:
@mark_grossnickle Thanks a lot for your comments!
Here is the Inspector screenshot of the generated object:
https://www.dropbox.com/s/2txbzz6p3u0g16l/TileRootReadySS.png?dl=0
I generated this scene from another unity project, and I saved and embedded the parameters into my current Unity project so that I can recreate it. Can it be caused by that? Please see the parts start with;
float[] surfaceVerts = { -306f, 0f, 307f,
float[] items3 = { -306f, 218.7174f, 307f,
And here is the full code;
I ended up using another model with from-scratch Unity application, however, same problem occurred. I believe the problem was the size of the hologram. I decreased the size of my hologram to the size of the Origami stage, and it worked! Stayed fixed in the 3d world, and I was able to look around.