Brilliant thanks. Setting the timestep to 0.02 did the trick. Was 0.138889 previously. Must mention that your VR Framework is excellent as is you documentation and support so thank you.
Woot! Excellent, glad you got it sorted. That timestep of 0.138889 is very slow. That must have been a typo on my end. It should be 0.0138889 ( 1 / 72 ). And for Rift you could target 90fps which is 1 / 90 or 0.011111.
Now that you have 0.02 working, Iâd recommend trying 0.0138889 and seeing if you can tell the difference. Itâs worth experimenting around with a bit. If you donât need the extra physics calculations having it at 0.02 may give you a little bit of extra cpu to work with.
Cheers,
JP
Hello! This looks like an excellent resource. I was wondering, is there an email I can contact you at to ask some usage rights questions? I tried your website and it looks like that link is broken. Thank you!
Edit: Just scrolled up and saw you posted your email, Iâll be reaching out to you there!
I have practically all assets related to VR controls. This is, without a doubt, the best and best finished. Worth every penny. I hope the author continues with his excellent work.
Thank you EstudioVR! And thank you for the review - thatâs super helpful. I will definitely keep working on this - and do let me know if you have any feature requests or suggestions.
Onwards and upwards!
Hi, I have a crash on scene EMPTY. I don´t know if in my side only, Unity 2019.3. Everytime i try to run, crash. Not a big deal.
Are you using Oculus Link by chance? The new link update has been giving me all sorts of trouble with Unity in general these last few days. If you are, try unplugging the headset and see if the scene loads in the editor then.
No, I am using Rift S. I have Quest too, but using Rift S for develop. I know the Link is unstable.
In the Player prefab, try disabling the âOVRHandPrefabâ and âOVRHandPrefab (1)â game objects. These are used for hand tracking, and it looks like this new Oculus update is having some problems with toggling that on / off in the Unity editor (or it could certainly be something on my end). Iâm 95% sure this should stop the crashing, even if youâre on the Rift. Ok maybe 90% sure
And please let me know if that works for you, as I imagine others will run into this issue as well.
Bingo! It works. Thanks
Hey !
I just tested the 1.1 and I love the snap zone.
Do you plan to make the UI Example compatible with hands tracking? Means using the fingers tip on sliders, buttons and scrollingUI ?
Hmm⌠I honestly hadnât really thought about it, but that would make sense. Do you mean using the pinch pointer like the Quest uses natively? Or to be able to physically scroll / touch elements using just your finger tips? I havenât tried the latter, but I do have some ideas on how that could be done without having to add a bunch of colliders or layers. Iâll have to play around with that a bit.
Excellent asset. A very well done work!
In the example using the UI, how can I enable the hover cursor behavior? (like change button color on mouse over)
Thank you, joz! For the UI example, you can just change the buttonâs âHighlighted Colorâ. Unity UI events / properties should still function as normal with this setup.
I tried do this enabling highlited colors on inspector:
Toggle button:
Silder:
Scrollbar
Button:
But had not effect:
lastspitefulgander
I tried enable âOVR Headset Emulatorâ
And worked like a charm:
delicioussmugbilby
should it work that way?
Thatâs odd. Shouldnât need that OVR Headset Emulator active for hovers to work. Itâs interesting that the active state worked but not the hovers in the first video. The hovers are working ok for me without the emulator. Hmm.
Are you using this in the editor or in a build? And is this for Quest or Rift. Lastly, what version of Unity are you running, and are you using the XR Management Package (Windows â Package Manager), or Oculus Desktop package? If you can give me that info I can try to reproduce and go from there.
Iâm using build for Quest (Oculus ver 13) on Unity 2019.2.15f1
I tested in the editor then worked fine. But on the Quest doesnât work without âOVR Headset Emulatorâ
Iâll try update Unity.
I donât see any harm in leaving OVR Headset Emulator enabled if thatâs working for you. In that module there is a check for whether or not itâs running in the Editor (IsEmulationActivated()), so I canât imagine there would be any major performance implications there when running on the headset.
I recently spent some time working on my own Raycasting UI solution in order to support things like dual UI pointers (or really just supporting more than one), but the built-in Unity EventSystem only supports one instance, and there are a lot of private variables that make extending it quite difficult. It just wasnât designed with multiple instances in mind. For example, if you want to be able to hover over two buttons at a time, or use two sliders at once, youâll have to modify the event system and most likely extend the ui components as well.
I believe the new UnityXR Input system should fix that, so instead of spending a bunch of time on the current event system, Iâm going to see if this new system will solve that problem. I wouldnât be surprised if Oculus releases something that utilizes this as well.
The new XR system should also allow this framework to much more easily support other devices outside of Oculus. My goal would be to use the XR system for everything outside of Oculus-specific features such as hand tracking and guardian. When you wanted to use these features you would just move the Oculus SDK up in the XR Settings and use a separate player prefab that has any Oculus-specific components on it. Thatâs the theory, anywaysâŚ
How do you add enemies to this to be able to practice on with your weapons you can use?
There is a pretty basic damage system included that should get the job done. Take a look at the breakable targets as an example.
Basically you would just add your enemies, and then on their hitboxes / colliders add the âDamageableâ component. You can set the Health property on this to whatever youâd like. Weapons have a âDamageâ property that will be subtracted from their Health on impact.
Then you just decide what to do with the enemy when it receives damage or dies. For example, you could play an animation, or hide the model and spawn a ragdoll in its place. I do plan on adding a simple npc as an example, but Iâve got a few more core items to wrap up first. Iâve also been working on grabbable ragdolls that are pretty hillarious to move around - Iâll post a video on that sometimes soon.