ExtendRealityLtd / VRTK

An example of how to use the Tilia packages to create great content with VRTK v4.
https://www.vrtk.io/
MIT License
3.69k stars 993 forks source link

New 3D control: Switch #386

Open rwetzold opened 8 years ago

rwetzold commented 8 years ago

It would be great to have a control that acts like a light switch with an on or off state, which is basically one button rotating and snapping to either side.

kristianpd commented 7 years ago

This is a very simple thing to do with current VRTK events and since each switch will be different based on your scene I think we have enough as it stands now.

I propose closing this issue.

reznovVR commented 7 years ago

I can see this being useful and could be even a core script (unless it already is by now(?)) since it's generally used in all types of projects like games, archviz, etc. and would be helpful for designers and artists.

thestonefox commented 7 years ago

Is a switch not just a lever where the state can either be up or down?

I know there are different types of pivoted switches (i think newtonvr has a pivoted on/off switch). I bet you could replicate it with the rotator script though.