I have a menu based application and I’m wondering how to create a dragable panel(using new UI), that can be dragged off screen but instead of staying on the same axis it rotates around the player. As the main application will be using a head tracking peripheral the player can move his/her head to see the floating panels around them and drag them in this enclosed radius around their head.
I am updating an old application so I’ve done dragable panels before my question is how to rotate a panel around the camera using a radius, also the UI’s local rotation is needs to always be pointing at the player, so the player can see the panels contents when they look at it.
Note my previous build used Mathf.Clamp to clamp the panel within another parent panel
I’ve re-purposed an old camera script for the panels to swivel as the user looks at them it looks quiet nice.
I’m still having issues with maintaining the radius between the panel and the main camera though. My last build has the panels in camera space. The UI panels are no longer subject to a parent panel as that limits the mobility of the panels, and the idea of this application is to have easy to access UIs that rotate around the main camera. There is few problems I have came across.
-The UIs need to be relevant to the main camera as it moves in world space, this is the purpose of camera spce placement.
-The UIs do not need to relevant to the cameras rotation, as the UIs will need to be easily dragged off in any direction and retrieved again by the user looking in that direction and dragging them back in to his/her forward facing direction.
If anyone can please help lead me in the right direction, maybe another similar question, It could even be a basic game object locked to a radius as the new UI system are still Game objects.