Skip to content
Kavan Bahrami edited this page Apr 19, 2023 · 2 revisions

VR Drag Locomotion Move/Rotate/Scale WIKI

Table of Contents

Overview

The VR Drag Locomotion Move/Rotate/Scale project provides blueprint code that allows users to move their VRpawn by grabbing and pulling in the x, y, and z directions, as well as rotating around the Z-axis and scaling the world by pulling the controllers together or apart. This blueprint code is compatible with Unreal Engine 4.27 and Unreal Engine 5+, and has been tested with the default VR Template project, Enhanced Input, and Meta Quest HMD (tested with both v1 and v2).

Getting Started

To use this blueprint code, follow the instructions listed in the README file.

Usage

After following the setup instructions, you can use the controller grips to move your VRPawn around the scene. Use both grips, grip and rotate controllers around each other to rotate your VRPawn around. Use both grips, pull together or apart, to adjust the world scale.

Todo List

Some ideas for potential improvements or new features that could be added to this project in the future.

  • Streamline setup process
  • Integrate C++ movement code from currentProject
  • Add support for multi-axis (XY) rotation as an expanded comfort setting, you should be able to lie down comfortably.
  • Add an option to restrict movement to a single plane

Known Issues

  • lacks easy backward compatibility prior to 5.1 due to enhanced input actions. Likely will just stop trying to support prior versions unless needed for currentProject

Contributing

If you'd like to contribute to the VR Drag Locomotion project, please feel free to fork the project and create a pull request with your changes. Potential contributions could include:

  • Creating more documentation/tutorials
    • Adding screenshots
  • Optimizing code for better performance

Thank you for your interest in the VR Drag Locomotion Move/Rotate/Scale project!