Okay, so now I've sorted out the Material for the two other crates. Next thing I want to do is add some collision. You do that by double-clicking on each model, and you see this screen:
Then I've clicked the Collision drop-down list box and selected Simple Collision for each crate.
So now it's time to add some of these crates to my level by simply dragging and dropping them in. Once a model has been dropped in you can Move, Rotate and Scale them using the shortcut keys W, E and R respectively.
Once a model has been dropped in you need to rebuild the lighting so that these models cast the right shadows by clicking on the Build drop-down list box shown below and clicking on Build Lighting Only:
Now it's time to have a look at these things in VR. If you press the Play button at the top you'll just see this playing in a window, not in VR. To change this you need to click on the arrows next to the Play button and go to Active Play Mode>VR Preview. Now this will play on your headset!
Okay, so that's all done. Now here's where I got stuck for a bit. I decided to Package the game (what Unreal calls making your game playable as a standalone game) and check that everything was working okay as a standalone project. Since Unreal Engine 4.11 (I think!) all Packaged games worked in VR if you had a headset connected. But for some strange reason known only to themselves, Epic decided to knock that on the head. I'm using the latest Unreal Engine version, 4.18, and when I launched the complied game nothing happened. Nothing on my headset, and all I could see on my PC was a nice view from what should have been my headset on the floor.
So to fix that you need to go to Edit>Project Settings and click on Description on the left. Then scroll down and you'll see a Start in VR option. Tick that box and that's it sorted!
So now it's time for you guys to try it out, assuming that anyone is still reading this drivel lol
To Package a game you go to File>Package Project>Windows>Windows (64 bit)
Now I came up with a couple of minor issues here, when you first do this and you don't have Visual Studio installed you get told you need it and Epic very kindly provides you with a link to the free Community Edition. So I installed that and got a load of error messages when the Unreal Engine tried packaging my game. It turns out that for some strange reason Visual Studio Community Edition doesn't install the c++ compiler, it just installs the C# compiler by default. I blame all these pesky Unity developers myself lol
So to solve this you just open up Visual Studio and start a c++ project which them downloads and installs the c++ compiler. A right pain in the arse, my own fault though, I should have chosen the Advanced installation I guess.
Just realised I haven't added something so that you can quit the thing lol
I've done enough today, I'll carry on with this tomorrow once I work out how to create a menu and work out how the Touch controller buttons work!
Once I've done that I'll upload the Packaged project to my website so you guys can download it and see my crates up close and personal