top of page

VR Plugin & Project

  • Writer: Fabio Pereira
    Fabio Pereira
  • Jan 31, 2022
  • 1 min read

Overview

In this project, I want to create components and systems that I can use to create a VR game out of. I’m experimenting and researching with VR and Unreal to get a better idea how to implement future mechanics and behaviours.


Systems

Character Controller

The controller does a few things but what’s notable is how it handles VR tracking. I need to make it move using the thumbsticks but it also needs to move when the player moves in the real world, otherwise the player will leave the collision component behind.

In the video below, the green sphere (Character) gets left behind when I walk around in my room. but with the added code, the red sphere (same but easier to see) stays attached when I walk.



ree

Hand Controllers

The hand controllers are the virtual representation of my VR controllers. They currently have code to grab objects and I’m implementing physics interactions.

Hands don’t go through objects and you can use this to push and pull objects




You can also grab the drawer and open/close it that way or grab an object and use that.



Climbing Mechanic

I implemented a climbing mechanic that allows you to climb static and moving objects



The only problem I’ve found is that if you scale the climbing surface below 1, it glitches out the character. A solution I’ve found is to scale the static mesh component, not the actor. But this might be a pain for designers so I need to find a better solution.

Zipline

I want to add a mechanic where you can hook objects round a zipline and be able to ride it down. So far I’ve added a ‘Cane’ that slides down but I need Implement a system that allows you, the player, to lift yourself in VR. For example, so you can hold the cane and pull yourself up or put your hands on a ledge and lift yourself up.



I learned and used Unreal’s physics materials to make a frictionless material so the cane will slide. It’s set to use the material of whatever it hits so it slide on the zipline but doesn't on the floor.





Comments


bottom of page