https://docs.unity3d.com/2019.4/Documentation/Manual/xr-template-vr.html
In Unity Project
Create VR Core Project -> Download Template
Builds Setting in File -> Android -> Switch Player
Texture Compression -> ASTC
Player Settings -> Player -> Other Setting ->
Colour Space -> Linear
Disable Auto graphics
Add OpenGLES3
Minimum API Level -> Android 10
Configuration -> ARM64
Open XR Plugin Manager -> Oculus
Oculus -> Multiple View
Game Assets: Link
Oculus Integration
QuidditchGameAssets
XR origin
Assets -> Samples ->Xr Toolkit -> Start Assets - >XRI Default Input Action
XRI Default Left Controller - > Add to action Based Controller
XRI Default Right Controller - > Add to action Based Controller
Edit -> project Setting - > Preset managers -> Rigth Short name
Tracking Origin to Floor
Add BloomStick
Adjust Controller and Bloom Stick
Bloom Stick
-> Add Component XR Grab Intractable
--> Set Interaction Manager
-> Add Component Capsule collider
in Left Control -> XR Ray -> Interaction Layer Setting -> Add Layer -> Intractable
-> Select Intractable
Do Same for BloomStick -> Xr Intractable Mask as Intractable
test
Create game Empty Game Object in Bloom Stick -> AttachTransform
And Adjust the transform on Stick
Add AttachTransform to attach transform in BloomStick Xr Grab
test
Add XR Direct Interactor Component in Controller
and Remove XR Ray
Add Sphere Collider is Triger and Radius small to 0.8
Test
Add Two prefab -> Beasterbat and Bludger
Add Collider
Movement Tracking as Velocity for Bulder In
Haptic Setting
Locomotion
ADD XRI Default Continuous Movement and Turn preset
Add Locomotion in XR Origin
Add Continuous Move Provider
Add Continuous Turn provider
Test
Add Character Controller
Teleportation provider
Create Emty Game Object in Camera Offset "RighthandParent"
Drag RightHand Controller to Parent and Change name to Righthand Teleport Controller
Add RightHand base Controller -> XR Controller Action Based
Add XR Direct Interactor
Spher Collider radius 0.08
XR Ray -> Line type-> projectile
Change Colour
Select Action to teleport XR Controller Action Based
Add Action Based Controller manager to parent
ADD XR Intraction Group
ADD teleportation Area to Stadiums
OVRCameraRig
https://developers.meta.com/horizon/documentation/native/android/mobile-device-setup/
https://sidequestvr.com/setup-howto
https://developers.meta.com/horizon/downloads/package/oculus-adb-drivers/
Comments
Post a Comment