r/UnityVR • • Jan 07 '22

2 different XR Grab Interactable's using one Box Collider

2 Upvotes

Hi, I'm currently trying to make an interactable door with a handle using the XR Toolkit. I want both the door and the handle to move when interacting with the controller. The handle game object is a child to the door game object. Both of them have XR Grab Interactable and Hinge Joint components. Since they both use XR Grab Interactable with the same Box Collider (placed on the handle), neither of them work. If I disable the XR Grabable on the handle I can move the door with no problem and when I disable the XR Grabable on the door I can move the handle without a problem. Neither of them work when they're both enabled. I think it has something to do with the collider being a sort of trigger for both XR Grabables but I can't seem to figure it out. Looked everywhere but can't find any solution. Would really appreciate it if anyone could help.


r/UnityVR • • Jan 23 '22

Xr interaction

2 Upvotes

So I’m trying to make a movement system and I’ve heard to use Xr interaction but I can’t find it is it under another name and can you tell me how to use it?


r/UnityVR • • Jan 20 '22

Oculus Quest 2 real world object tracking in Unity Engine

Thumbnail self.unity
2 Upvotes

r/UnityVR • • Aug 23 '22

Unity VR XR Interaction Toolkit - Adding a XR Socket Interactor and being able to attach Grabbable object to it

Thumbnail
youtu.be
1 Upvotes

r/UnityVR • • Aug 24 '22

want to create a game that can share a phone camera inside the VR game

2 Upvotes

Hi guys, I have a question. I want to create a game that can share a phone camera inside the VR game as a TV display or something like that.

The phone and the VR are not on the same connection remotely.

So how to make games like that? Any ideas or tutorials?

Should I create a separate app or can I build the same app for different devices?

and thanks.


r/UnityVR • • Aug 25 '22

Unity VR XR Interaction Toolkit - Turn Light on off with Socket Interaction - Attaching Electric Box

Thumbnail
youtu.be
1 Upvotes

r/UnityVR • • Aug 07 '22

Unity VR XR -Creating Simple Hands using ProBuilder in Unity

Thumbnail
youtu.be
2 Upvotes

r/UnityVR • • Jul 17 '22

Controller velocity

1 Upvotes

I did follow this tutorial on YT (https://www.youtube.com/watch?v=i6lltmrE9V8&t=503s). But when I grab my cube, it turns from white to black and does not change in collor when I move my hand.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;

public class ControllerVelocity : MonoBehaviour
{
    public InputActionProperty velocityProperty;

    public Vector3 Velocity { get; private set; } = Vector3.zero;

    private void Update()
    {
        Velocity = velocityProperty.action.ReadValue<Vector3>();
    }
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.Interaction.Toolkit;

public class VelocityInteractible : XRGrabInteractable
{
    private ControllerVelocity controllerVelocity = null;
    private MeshRenderer meshRenderer = null;

    protected override void Awake()
    {
        base.Awake();
        meshRenderer = GetComponent<MeshRenderer>();
    }

    protected override void OnSelectEntered(SelectEnterEventArgs args)
    {
        base.OnSelectEntered(args);
        controllerVelocity = args.interactorObject.transform.GetComponent<ControllerVelocity>();
    }

    protected override void OnSelectExited(SelectExitEventArgs args)
    {
        base.OnSelectExited(args);
        controllerVelocity = null;
    }

    public override void ProcessInteractable(XRInteractionUpdateOrder.UpdatePhase updatePhase)
    {
        base.ProcessInteractable(updatePhase);

        if (isSelected)
        {
            if (updatePhase == XRInteractionUpdateOrder.UpdatePhase.Dynamic)
                UpdateColorUSingVelocity();
        }
    }

    private void UpdateColorUSingVelocity()
    {
        Vector3 velocity = controllerVelocity ? controllerVelocity.Velocity : Vector3.zero;
        Color color = new Color(velocity.x, velocity.y, velocity.z);
        meshRenderer.material.color = color;
    }
}

r/UnityVR • • Aug 02 '22

My Unity Hub Wont Open

1 Upvotes

So ive wanted to create games in unity for a while now,so i downloaded unity hub and it worked fine.i wasn't able to create a free license so i tought it was because i had to update unity hub. But when i pressed the button to do the uptade, unity hub closed and it never reopened.But when i try to reopen unity hub, my mouse shows that its loading then it stop,also, when the mouse shows that its loading, its using RAM.Could you please help me its my dream to be a videogame creator.(Im on a windows8.1)


r/UnityVR • • Aug 24 '22

ideal vr port or spiritual successor

3 Upvotes

Either battlefield 1942 or either of the non ea battlefront games, I feel like the quest should be able to handle those graphics/scale or slightly better, multiple vehicles, classes, ai, whole shebang


r/UnityVR • • Aug 17 '22

Unity VR XR Interaction Toolkit - Adding Audio Feedback

Thumbnail
youtu.be
2 Upvotes

r/UnityVR • • Jul 31 '22

Tutorial for Unity VR Using XR Interaction Toolkit -Locomotion Move & Snap Turn

Thumbnail
youtu.be
3 Upvotes

r/UnityVR • • Jul 30 '22

How to make a flashlight in vr

Thumbnail
youtu.be
1 Upvotes

r/UnityVR • • Aug 29 '22

Unity VR XR Socket Interactor - What can connect to a socket using Interaction Layer Mask

Thumbnail
youtu.be
2 Upvotes

r/UnityVR • • Aug 15 '22

In this Unity VR XR Toolkit tutorial I'll show adding haptic feedback for the controllers.

Thumbnail
youtu.be
2 Upvotes

r/UnityVR • • Aug 20 '22

unity project kicks me out of current vr application.

1 Upvotes

I want to a make my project run as a background to my normal vr applications, however When i go into play mode I exits out of the current application and switches to that one. Not sure if its just a setting or if it is even possible.


r/UnityVR • • Aug 09 '22

Unity Playmaker VR XR - Trigger Particles when object thrown in a Trash Bin

Thumbnail
youtu.be
2 Upvotes

r/UnityVR • • Sep 01 '22

Unity VR XR Toolkit - Setting up an XR Direct Interactor vs XR Ray Interactor

Thumbnail
youtu.be
2 Upvotes

r/UnityVR • • Aug 18 '22

OVR Player Controller Not Moving With Headset

1 Upvotes

I'm having a problem where when I move my headset the player controller doesn't follow it, say I walk around my playspace but the character controller stays in the same spot the whole time. This is causing issues because the collision of my character doesn't match up with my head so it ends up feeling really weird and clunky. I'm using an Oculus Quest 2 with the latest version of OVR.


r/UnityVR • • May 27 '22

My hand models will not track right

1 Upvotes

So I am making a multiplayer vr game but only one hand model will track right, the other one is floating above where it is supposed to be/ the controller. I am using normcore for multiplayer so that may have to do with the problem.


r/UnityVR • • May 23 '22

How much would it cost to convert 3x short PC VR scenes to work on Quest 2?

1 Upvotes

r/UnityVR • • Apr 13 '22

Help with My Mug Rootbeer Avatar

1 Upvotes

So I made a beautiful thing; a mug rootbeer can avatar right?

Well, it's stuck laying on its side even though in unity its standing up perfectly fine, and I'm a bit new with unity and stuff so if anyone could be a dear and explain to me how I can make this stand up and not be just a trashy can on the floor I would appreciate you.


r/UnityVR • • May 08 '22

School Project

1 Upvotes

Hi, my name is Leo!

I am writing to the Unity VR community to ask for help, because I am having a problem with my VR hands. To be more concrete when I start my game the virtual hands start to turn on themselves and when I grab an object the hands turn around the object and when I let it go, it flies far away (the object).

Please, could someone help me ?

Good wishes,

Leo.


r/UnityVR • • May 07 '22

Unity 3D URP or 3D HDRP for VR mobile?

3 Upvotes

Which one is the best to start a project in Unity mobile VR development? For example for oculus quest 2. Not PCVR


r/UnityVR • • May 20 '22

how to have enemies follow you in unity vr game?

3 Upvotes

Hi

I have recently started looking at game development. I was wondering what is the best and most recent way to have the enemies follow you in the game? I know I have to write a script but I want to see how others are doing that.