Hello, my kids are in a summer camp this week and we're using CoSpaces to make VR games and animations. I'm new to using CoSpaces and so they had some questions I haven't been able to find the answer to yet. I was hoping you could help. Tomorrow is our last day!
Here you need to write the line cam = Scene.getCamera() inside the "Coding" block to get the camera object. Then you also need to create a variable in Blockly with the same name (cam). You can use this code snippet as a starting point.
Example in action: https://cospac.es/b8K5
2. You can use the "on collision of" block from the "events" tab to handle the event if one object touches another object. This is similar to what you want to do.
Every time the man touches another object in the scene the code inside enter will be executed.
Link to this example: https://cospac.es/ohH9
3. This should be done with the "on collision of" block as well. But it seems that it doesn't work with the camera object at the moment. We're going to change this so it will work in the future. But maybe you can use the "on activate of" block to achieve a similar effect. The difference is that you instead of touching an object you need to click on it. Have a look:
When we click on the door we're getting teleported to the second door.
Link to example: https://cospac.es/GEin
I hope I could help you.
Benjamin