microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6k stars 2.12k forks source link

Tagalongs need to face camera #63

Closed flarb closed 8 years ago

flarb commented 8 years ago

Isn't it kind of weird how the tagalongs don't orient towards the camera? If you turn about 90 degrees off, the tagalong will be facing so far away from you it's impossible to access.

I tried putting a simple lookat in the Tagalong's update (and restricted rotation to just Y) but I think it's messing up the visibility check with the bounding box so it floats out of view more often...but I'm not totally sure.

Any best practices for keeping a tagalong facing the player--or is this something we need to fix in the tagalong scripts?

david-c-kline commented 8 years ago

I have always added a Billboard script to my Tagalong objects. That could easily be made a requirement.

From: Ralph Barbagallo [mailto:notifications@github.com] Sent: Friday, June 17, 2016 11:26 AM To: Microsoft/HoloToolkit-Unity HoloToolkit-Unity@noreply.github.com Subject: [Microsoft/HoloToolkit-Unity] Tagalongs need to face camera (#63)

Isn't it kind of weird how the tagalongs don't orient towards the camera? If you turn about 90 degrees off, the tagalong will be facing so far away from you it's impossible to access.

I tried putting a simple lookat in the Tagalong's update (and restricted rotation to just Y) but I think it's messing up the visibility check with the bounding box so it floats out of view more often...but I'm not totally sure.

Any best practices for keeping a tagalong facing the player--or is this something we need to fix in the tagalong scripts?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/HoloToolkit-Unity/issues/63, or mute the threadhttps://github.com/notifications/unsubscribe/AMqofv3eT8r902yAuWEYIrMWzmzWDMRuks5qMubGgaJpZM4I4nU2.

ChimeraScorn commented 8 years ago

It would definitely be a cool option… Not sure if I would make it mandatory.

From: David Kline [mailto:notifications@github.com] Sent: Friday, June 17, 2016 11:31 AM To: Microsoft/HoloToolkit-Unity HoloToolkit-Unity@noreply.github.com Subject: Re: [Microsoft/HoloToolkit-Unity] Tagalongs need to face camera (#63)

I have always added a Billboard script to my Tagalong objects. That could easily be made a requirement.

From: Ralph Barbagallo [mailto:notifications@github.com] Sent: Friday, June 17, 2016 11:26 AM To: Microsoft/HoloToolkit-Unity HoloToolkit-Unity@noreply.github.com Subject: [Microsoft/HoloToolkit-Unity] Tagalongs need to face camera (#63)

Isn't it kind of weird how the tagalongs don't orient towards the camera? If you turn about 90 degrees off, the tagalong will be facing so far away from you it's impossible to access.

I tried putting a simple lookat in the Tagalong's update (and restricted rotation to just Y) but I think it's messing up the visibility check with the bounding box so it floats out of view more often...but I'm not totally sure.

Any best practices for keeping a tagalong facing the player--or is this something we need to fix in the tagalong scripts?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/HoloToolkit-Unity/issues/63, or mute the threadhttps://github.com/notifications/unsubscribe/AMqofv3eT8r902yAuWEYIrMWzmzWDMRuks5qMubGgaJpZM4I4nU2.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/HoloToolkit-Unity/issues/63#issuecomment-226846516, or mute the threadhttps://github.com/notifications/unsubscribe/AIo6gCEmW8Pz_DO-6HkR2JX0U21XVvyJks5qMuf9gaJpZM4I4nU2.

flarb commented 8 years ago

Ah never thought about using the billboard script on it. Although I think it would be better if they only rotate on the Y axis, so any interface buttons you may have on the tagalong are easily clickable (if the thing keeps rotating it might make it tricky)

Maybe a checkbox in the inspector for billboard, or Y-only billboard on the tagalongs would be good.

jwittner commented 8 years ago

@flarb Isn't the Pivot Axis of the Billboard script what you're looking for?

flarb commented 8 years ago

@jwittner oh! I haven't tried using it yet (I usually write my own billboarding stuff) I'll give it a shot, thanks!

jwittner commented 8 years ago

@flarb If that works for you, can we close this issue?

jwittner commented 8 years ago

Closing as last sense was that it was resolved via discussion.