VR Game Template

[=Beacon;225698]
Thanks for your reply ! Could you go into some more detail on please? For my purposes, all I need is to A: control the view of the player with the analog stick of a controller, I don’t need any player movement at all, and B: control the view of the player with the Rift, so full head-tracking - again, no actual movement.

Thanks!
[/]

Alright lets get into it, first of all i’ll be using a blank project in 4.7, it seems epic has changed the Pawn rotation thing in 4.7 so it no longer disables rift rotation (not a big deal because we can work around that).
OK,

  1. you’ll need 4 blueprints
    73d4af7bdd32d1653751a0830da69c12e351b1ac.jpeg
  • a Character(feel free to use a Pawn here instead I used a character because if you ever do want to movement it will be easier way)
  • a Game Mode
  • a Player Camera Manager
  • a Player Controller
  1. Open up the character and set up the looking input(note the mouse Y defaults to inverse controls for Pitch so X -1 sets it to what most games default at)
    f01eee27396dd147a8bb4c97bb767f999993e33d.jpeg

  2. Set up the defaults for the Character to use the Pitch(is needed only for rift support)
    Make sure your clicked on self(in 4.7)
    f6cada08ba5d4bdcd5b84ff18271d9fbebe8242d.jpeg
    then enable pitch
    806c25689c86d4b3a072f45ce05a9b8a2cc6e237.jpeg

  3. Open up the Player Camera Manager and enable Follow HMD Rotation
    9dda6c2b0861daf843d0449061c515181e9febd9.jpeg

  4. Open up the Player Controller and tell it to use the new Player Camera Manager
    RiftPitch06.JPG

  5. Open up the Game Mode and tell it to use the New Character And Player controller
    RiftPitch07.JPG

  6. Now is the most important step (also the one I forget nearly every time) Use the new game mode

Alright Let me know if works, it did for me, although it might be a bit uncomfortable in VR let me know how it works in your game
thanks