Digital Twin Fundamentals
This step-by-step guide walks you through the setup for using the panoramic FPS controller in Unity for display at the CRAIVE-Lab.
Last updated
This step-by-step guide walks you through the setup for using the panoramic FPS controller in Unity for display at the CRAIVE-Lab.
Last updated
Here is a list of things you should have on your computer:
A Unity scene with some ground-like surfaces attached with MeshCollider; and
The CRAIVE-Lab Special Assets package for Unity.
You should also have the following packages installed in your Unity project:
Universal Render Pipeline (Universal RP)
14.0
Shader Graph
14.0
Cinemachine
3.0
Input System
1.10
Double Check! Make sure that your Unity project is capable of interfacing with both the new Input System and the old one. To check this, you can go to Edit >> Project Settings..., and find that both Input Manager and Input System Package exist as sub-menus. To make everything render correctly in the scene, you should also create a Universal Render Pipeline Asset for your project, and use it in Project Settings >> Graphics.
The usage of this controller is very similar to Unity's own Starter Assets: First-Person Controller. It is as simple as drag-and-drop.
Import the special asset package to your Unity project. You should then see the following in your Assets folder.
In the Assets folder, under C01_FPS --> Prefabs, drag the ROIS_FPS01 prefab into your scene. Place it anywhere you desire, as long as the location you choose is above a ground surface.
Hit play and enjoy! Use WASD keys and arrow keys to control your movement. Use the mouse to control where you look.
Currently, the vertical mouse look is disabled by default. To re-enable this, here is what you should do:
Under the controller prefab, click on ROIS_01;
In the inspector, Find the First-Person Controller C# scripting component;
Change the Top Clamp and Bottom Clamp parameters to 90 and -90, respectively.
Current Limitations
This controller can move horizontally, look around, and sprint (move faster). It cannot move vertically, jump, and fly. Works are underway to address these limitations.