Simple VR Collision Plugin

An easy to use plugin for handling smooth VR camera collisions.

  • Supported Platforms
  • Supported Engine Versions
    5.4
  • Download Type
    Engine Plugin
    This product contains a code plugin, complete with pre-built binaries and all its source code that integrates with Unreal Engine, which can be installed to an engine version of your choice then enabled on a per-project basis.

Showcase

Checkout my climbing plugin

This plugin enables a room-scale VR character to have smooth collisions.

The player can also crawl under tight spaces without his view clipping through the roof or floor.

To use the plugin, simply add it to your existing Character. Also make sure to use the component hierarchy as shown in the screenshot.


In the Begin Play function, call the "Setup VR Components" function from the "Simple VR Collision" component.

The minimum inputs which are required, are the Collision Capsule Component, VROrigin (Scene Component), and the Camera Component.


If you want to make the Character fit into more narrow spaces you can simply adjust the Capsule Component Radius.


IMPORTANT: This component is currently intended to work with Characters. You may find a workaround for Pawns but this cannot yet be guaranteed.

Bonus: Demo Character Blueprint with smooth locomotion logic.

Technical Details

Setup

Features:

  •  Handles VR camera collisions in all directions
  •  Dynamically adjusts Collision Capsule height
  • Use BodyZOffset variable to manually adjust the character's height, e.g. useful for seated gameplay or crouching by pressing a button.

Code Modules:

  •  Simple VR Collision (Actor Component), Type: Runtime

Number of Blueprints: 1

Number of C++ Classes: 1

Network Replicated: No

Supported Development Platforms: Windows

Supported Target Build Platforms: Windows

Example Project: Included in the plugin content folder (See Screenshot)

Important/Additional Notes: This component is currently intended to work with Characters. You may find a workaround for Pawns but this cannot yet be guaranteed.