Activate an object in VR with Blockly?

119 views
Skip to first unread message

Greg O'Toole

unread,
Jan 10, 2017, 11:06:03 AM1/10/17
to CoSpaces
Hello all. 
My kids and I are enjoying using Blockly to animate objects in our VR scenes.
We'd like to know if we can make our programs more interactive by moving the magnetic trigger on the side of our Google Cardboard goggles to select, activate or move an object in the centre of the view using the Blockly language.
Thanks for your feedback/ideas!

Susanne Krause

unread,
Jan 10, 2017, 11:41:10 AM1/10/17
to CoSpaces
Hi Greg, great to hear you and the kids are having fun with CoSpaces and Blockly!

About your question: Have you already played with these two blocks?


With the first one, you can define that a certain action will happen once you look at an object in VR AND use the magnetic trigger. For example, this code will make a rabbit jump. 

With the second one block, an object will do a certain action as soon as you look at it in VR (without having to use any button). THe following code, for example, will make the rabbit change to a new random color every time you look at it in VR. 

Is this what you were looking for?

If you have more scripting specific questions, the CoSpaces scripting forum might be more helpful for you. My colleague who takes care of scripting questions will be back tomorrow morning. 



Reply all
Reply to author
Forward
0 new messages