WASD Keyboard control in VR (oculus)

Anonymous

WASD Keyboard control in VR (oculus)

Anonymous
Not applicable

Hi all.

Im all new to Stingray, im trying to make a Architectural VR tour, but i cant figure how to make a WASD keyboard control when using the Oculus VR template, im runing an old DK2 kit, so i dont have any controllers.

 

i have tried to add a Flow Script to the Player start object, but i does not work for me

 

Used this one : https://youtu.be/EqNR0fGONSY?list=PLcy-u-vkV4_dezNdtfVUkkx28BSy5MrHw&t=758

 

best regards

Michael

 

Reply
Reply
0 Likes
Reply
1,267 Views
9 Replies
Replies (9)

Anonymous
Not applicable

Are you updating the tracking space of the oculus to move with the unit?

 

Depending on if you're moving the unit or mover, use a 'get unit local position' or 'get mover position' node and hook the position up to a 'set oculus tracking space' node on level update. 

Reply
Reply

Anonymous
Not applicable

@Anonymous Thanks for the reply

 

i cant figure.... do i have to do that in the level flow editor, or in the unit flow editor for the Player_start unit.

 

Best regards

Michael

Reply
Reply
0 Likes

Anonymous
Not applicable

You'll do it in the same unit flow of which unit it was that you added the WASD keys in. 

 

Have you started from the oculus template?

Reply
Reply

Anonymous
Not applicable

Yes i have started from the oculus template,

 

i tried, but cant se to get i to work. 😞 

 

Thanks for your help

Reply
Reply
0 Likes

Anonymous
Not applicable

Okay, which unit are you creating this flow in?

 

Can you post your flow as it is now?

Reply
Reply
0 Likes

Anonymous
Not applicable

im creating the flow in the Player_start unit.

 

 player_start-flow.jpg

Reply
Reply
0 Likes

paul.kind
Alumni
Alumni

I made this tutorial a while back.  It covers using an xbox controller, but, you should be able to easily adapt it to your keyboard movement.

 

Part 1 : https://www.youtube.com/watch?v=s9Amaa6xPhQ&t=21s

Part 2 : https://www.youtube.com/watch?v=FrJGc3ZkZLg&t=2s

 

 

If you understand how to work with the XBox controller, you will certainly be able to apply it to your keyboard.

Areas of Expertise - MayaLT : Mudbox : 3DS Max : Inventor : Game Dev
Follow me on Twitter : @paulkind3d

Please remember to give kudos freely and mark acceptable answers as solved!

PLEASE do not send me private messages unless asked to do so. If you have a question, start a thread, and ask me on the public forums where answering your question may help others.

Did you know there was a YouTube learning channel for Autodesk Games? New videos are posted regularly with all sorts of content relative to Stingray, Maya/MayaLT, 3DS Max, and other game related tools. Get your game on @ https://www.youtube.com/user/autodeskgameshowtos
Reply
Reply

Anonymous
Not applicable

Haven't looked at everything fully but first glance it looks like your oculus set tracking space needs something plugged into its grey 'in' part to execute the node. 

 

Try adding a level update node into that and see what happens 🙂

 

Also i'm not too sure if it actually has much effect, but set the move unit and rotate unit nodes to 'my unit' in the green unit input.

Reply
Reply

Anonymous
Not applicable

Thanks for the reply...

 

Im trying that out... no luck yet, but thats my Flow "noobnes"... i will try and work with it 

 

Best regards!

 

Reply
Reply
0 Likes