#Hololens – New emulation features with HoloLensCamera in #HoloToolkit

Hello!

Today is also a quick post day. Yesterday I spend some time to learn some new features of the HoloToolkit, and I realiced that the new HoloLensCamera has some very interesting features when we use the “emulation mode” in Unity3D. It allows us to perform navigation and interaction actions in a very simple way using keyboard and mouse.

2017-01-23-holo-camera

The previous animation shows how we can move an object using the keyboard navigation buttons and also we can use keys using the Shift key and the mouse to emulate the interaction of a hand doing an AirTap.

If we see a HoloLensCamera inspector, we can see in the same properties, the script ManualGazeControl is in charge of processing all these movements.

clipboard02

The option of working with a Joystick comes disabled by default, I’ve tried it with a XboxOne controller and it works fine. The code on the manager script is fairly self-explanatory.

In the method Update() of the class, according to the State of the keyboard, mouse and finally of the joystick, the position is processed. Then with the values of X and Z, the emulator moves the camera to the right place.

 

Clipboard04.jpg

Except that need some functionality that requires debugging C#, this is another reason not to use the emulator from Visual Studio 2017!

Greetings @ Toronto

El Bruno

References

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s