# VR Expansion Plugin

**URL:** <https://forums.unrealengine.com/t/vr-expansion-plugin/68709>\
**Category:** XR Development\
**Tags:** unreal-engine\
**Created:** [July 11, 2016, 6:16pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709 "2016-07-11T18:16:57Z")\
**Posts on this page:** 20\
**Page:** 135

<div class="post-metadata">

**Author:** ![ronaldburns](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ronaldburns/32/956074_2.png) [@ronaldburns](https://forums.unrealengine.com/u/ronaldburns)\
**Post date:** [August 27, 2018, 12:39pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2747 "2018-08-27T12:39:54Z")

</div>

Has anyone made a way to attach the hand to the object you pickup? So when the object collides with a wall, your hand doesn’t go through that wall.

Edit: Just trying the same thing lots of other people are trying.  
Trying to attach the weapon to an ik body mesh.

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [August 27, 2018, 2:56pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2748 "2018-08-27T14:56:46Z")

</div>

> [@HeadClot](#):
>
> Hey - Got a question for you. Do you plan on supporting the Oculus Santa Cruz when it comes out?

Not sure what you mean by support, the engine already abstracts away most interfacing, the plugin doesn’t do anything special except for the additional module for OpenVR extras.

However, if you mean make a default controller profile for it, yes I intend to do that for all controllers.

> [@rojo8399](#):
>
> Has anyone made a way to attach the hand to the object you pickup? So when the object collides with a wall, your hand doesn’t go through that wall.
> 
> Edit: Just trying the same thing lots of other people are trying.  
> Trying to attach the weapon to an ik body mesh.

Plenty of people attach the hand, you can even directly get the correct offset by breaking the grip structure and inversing the RelativeGripTransform. RelativeGripTransform is the wanted offset of the object to the controller, inversing it makes it the offset of the controller to the object.

In the case of a socket snap grip, will end up being the socket location even.

Though you could always have sockets for HandMeshs on the objects as well to tailor it specifically.

---

<div class="post-metadata">

**Author:** ![J\_Tox](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/j_tox/32/1040506_2.png) [@J\_Tox](https://forums.unrealengine.com/u/J_Tox)\
**Post date:** [August 27, 2018, 3:20pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2749 "2018-08-27T15:20:27Z")

</div>

Hi @mordental, I have a grippable mesh and on that I populated several vrsliders as children.  
I saw your example for the parameters of quality setting but there is only one vrslider and I need to have an update of the scale value to be sent to different other variable.  
How can I get those values when I have several vrsliders ?  
Thanks

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [August 27, 2018, 3:34pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2750 "2018-08-27T15:34:36Z")

</div>

> [@J\_Tox](#):
>
> Hi @mordental, I have a grippable mesh and on that I populated several vrsliders as children.  
> I saw your example for the parameters of quality setting but there is only one vrslider and I need to have an update of the scale value to be sent to different other variable.  
> How can I get those values when I have several vrsliders ?  
> Thanks

On your primary actor (the grippable mesh), bind to the OnSliderHitPoint event for each slider and assign a SnapIncrement and SnapThreshold so that the slider snaps between values. When the event is thrown then you can just set whatever value you want to the sliders CurrentProgress.

If you want a non “snap” setup then either OnChildGripReleased and check each slider and assign to its CurrentSliderProgress, or better yet, subclass a VRSlider and give it a new event OnReleasedFinalValue, fire it off when the slider is let go of and in the primary actor bind to it.

The custom event method is the best for a really generic settings slider, you can even add a var like “number of pips” and if it is \> 0 then have it auto setup its thresholds and snap increments and have it fire up to the actor when it hits points as well, not just on release.

Its really up to you, the one in the template is hardcoded to a specific console variable, a generic one for your own use is likely where you want to go.

---

<div class="post-metadata">

**Author:** ![J\_Tox](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/j_tox/32/1040506_2.png) [@J\_Tox](https://forums.unrealengine.com/u/J_Tox)\
**Post date:** [August 27, 2018, 3:52pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2751 "2018-08-27T15:52:01Z")

</div>

> [@](#):
>
> On your primary actor (the grippable mesh), bind to the OnSliderHitPoint event for each slider and assign a SnapIncrement and SnapThreshold so that the slider snaps between values. When the event is thrown then you can just set whatever value you want to the sliders CurrentProgress.
> 
> If you want a non “snap” setup then either OnChildGripReleased and check each slider and assign to its CurrentSliderProgress, or better yet, subclass a VRSlider and give it a new event OnReleasedFinalValue, fire it off when the slider is let go of and in the primary actor bind to it.
> 
> The custom event method is the best for a really generic settings slider, you can even add a var like “number of pips” and if it is \> 0 then have it auto setup its thresholds and snap increments and have it fire up to the actor when it hits points as well, not just on release.
> 
> Its really up to you, the one in the template is hardcoded to a specific console variable, a generic one for your own use is likely where you want to go.

Thank you @mordental…I will go through.

---

<div class="post-metadata">

**Author:** ![ronaldburns](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ronaldburns/32/956074_2.png) [@ronaldburns](https://forums.unrealengine.com/u/ronaldburns)\
**Post date:** [August 27, 2018, 5:36pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2752 "2018-08-27T17:36:42Z")

</div>

> [@](#):
>
> Plenty of people attach the hand, you can even directly get the correct offset by breaking the grip structure and inversing the RelativeGripTransform. RelativeGripTransform is the wanted offset of the object to the controller, inversing it makes it the offset of the controller to the object.
> 
> In the case of a socket snap grip, will end up being the socket location even.
> 
> Though you could always have sockets for HandMeshs on the objects as well to tailor it specifically.

Alright. Thank you for always providing a ■■■■ ton of great support btw. Everyday I see you typing out paragraphs for people.

With the attach, I guess I just can’t wrap my head around it since I haven’t successfully done it before yet. I’ll keep trying. Thanks!

---

<div class="post-metadata">

**Author:** ![sphinix257](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sphinix257](https://forums.unrealengine.com/u/sphinix257)\
**Post date:** [August 27, 2018, 10:51pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2753 "2018-08-27T22:51:13Z")

</div>

> [@rojo8399](#):
>
> Alright. Thank you for always providing a \*\*\*\* ton of great support btw. Everyday I see you typing out paragraphs for people.
> 
> With the attach, I guess I just can’t wrap my head around it since I haven’t successfully done it before yet. I’ll keep trying. Thanks!

I was doing it with the socket on objects like he was mentioning and it was very easy and smooth. And you could import posed positions in from your animation software and set it on specific objects.  
Just on grip, spawn and attach hand and set pose. remove on release grip. You probably also want to use socket only gripping to make it easier.

You just need to make sure you hide and unhide the normal hands on grip so you dont have 2 hands. I stopped though because i was planning to make to many assets and it was a hassle.

Note could also probably come up with a easier way to pose with code

---

<div class="post-metadata">

**Author:** ![ronaldburns](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ronaldburns/32/956074_2.png) [@ronaldburns](https://forums.unrealengine.com/u/ronaldburns)\
**Post date:** [August 28, 2018, 11:56am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2754 "2018-08-28T11:56:21Z")

</div>

I was using a sphere trace to allow players to pickup objects from far away before I switch to the plugin. Is there any way to still use a sphere trace? Or do we have to use collision components.  
If so, I’ll have to figure out how to stretch and rotate a capsule component to match the long sphere trace.

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [August 28, 2018, 12:30pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2755 "2018-08-28T12:30:15Z")

</div>

> [@rojo8399](#):
>
> I was using a sphere trace to allow players to pickup objects from far away before I switch to the plugin. Is there any way to still use a sphere trace? Or do we have to use collision components.  
> If so, I’ll have to figure out how to stretch and rotate a capsule component to match the long sphere trace.

The plugin doesn’t care what you use, you tell it what to grip, you are confusing the plugin with the sample contents implementation.

The templates implementation is a combination of a sphere trace and an overlap, it falls out of one and into the other if nothing was found, there actually is a specific variable for how far to trace out of the sphere location, I extend it in the FPS testing pawn since it is harder to line up the hands with.

---

<div class="post-metadata">

**Author:** ![ronaldburns](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ronaldburns/32/956074_2.png) [@ronaldburns](https://forums.unrealengine.com/u/ronaldburns)\
**Post date:** [August 28, 2018, 1:15pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2756 "2018-08-28T13:15:01Z")

</div>

> [@](#):
>
> The plugin doesn’t care what you use, you tell it what to grip, you are confusing the plugin with the sample contents implementation.
> 
> The templates implementation is a combination of a sphere trace and an overlap, it falls out of one and into the other if nothing was found, there actually is a specific variable for how far to trace out of the sphere location, I extend it in the FPS testing pawn since it is harder to line up the hands with.

Oh wow I didn’t even see that. There’s just so much stuff in the plugin and examples it’s overwhelming to me. Thank you!

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [August 28, 2018, 1:57pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2757 "2018-08-28T13:57:19Z")

</div>

> [@rojo8399](#):
>
> Oh wow I didn’t even see that. There’s just so much stuff in the plugin and examples it’s overwhelming to me. Thank you!

The template is overly complex since it is demoing everything and supports multiplayer, I intend to make a really simple version with bare basics eventually but I keep prioritizing new features over it.

---

<div class="post-metadata">

**Author:** ![ronaldburns](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ronaldburns/32/956074_2.png) [@ronaldburns](https://forums.unrealengine.com/u/ronaldburns)\
**Post date:** [August 28, 2018, 2:24pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2758 "2018-08-28T14:24:22Z")

</div>

> [@](#):
>
> The template is overly complex since it is demoing everything and supports multiplayer, I intend to make a really simple version with bare basics eventually but I keep prioritizing new features over it.

Prioritizing new features sounds way better! I’m sure I’ll figure everything out.

---

<div class="post-metadata">

**Author:** ![sphinix257](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sphinix257](https://forums.unrealengine.com/u/sphinix257)\
**Post date:** [August 28, 2018, 2:45pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2759 "2018-08-28T14:45:58Z")

</div>

> [@rojo8399](#):
>
> Prioritizing new features sounds way better! I’m sure I’ll figure everything out.

Might not hurt to chop up the player template in to multiple pawns. Each with only nessiary code left in. You wouldn’t have to write to much code then just copy it and delete unnecessary stuff per certain features

---

<div class="post-metadata">

**Author:** ![sphinix257](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sphinix257](https://forums.unrealengine.com/u/sphinix257)\
**Post date:** [August 28, 2018, 3:08pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2760 "2018-08-28T15:08:24Z")

</div>

So i used the gripable mesh actor class as the parent of a large portion of my current code. Does it not have the grip settings that the gripable component has

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [August 28, 2018, 3:35pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2761 "2018-08-28T15:35:29Z")

</div>

> [@sphinix257](#):
>
> So i used the gripable mesh actor class as the parent of a large portion of my current code. Does it not have the grip settings that the gripable component has

It does, its on the actor not the root component.

---

<div class="post-metadata">

**Author:** ![sphinix257](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sphinix257](https://forums.unrealengine.com/u/sphinix257)\
**Post date:** [August 28, 2018, 3:37pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2762 "2018-08-28T15:37:54Z")

</div>

> [@](#):
>
> It does, its on the actor not the root component.

Ok. Ill give it another look when I get home

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2205daf8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2205daf8](https://forums.unrealengine.com/u/anonymous_user_2205daf8)\
**Post date:** [August 28, 2018, 5:28pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2763 "2018-08-28T17:28:41Z")

</div>

> [@](#):
>
> Objects don’t replicate from client up (and for that matter spline mesh components don’t replicate any of their special variables over a static mesh).  
> Also you shouldn’t be replicating spline meshes anyway, just re-create them locally on clients. If you really need the exact same spline, replicate the points and re-create the spline.
> 
> As for the interaction lasers, are you testing across computers or in PIE testing? Widget interactors add themselves to the global pool of input agents when they are activated so they can overrule each other, being in editor both instances of PIE share the same pool. When playing in packaged each separate computer has its pool so it shouldn’t be an issue.
> 
> Yeah change default platform and set steam subsystem enabled = false.  
> If you leave steam as the default then you need the steam client loaded on both machine to host and join.

thanks for the reply,  
however widget interaction works when I simulate server+client right from the editor and does not work on the client when I run server and client on two different PCs.

And if I leave steam enabled and run both PCs with two different steam accounts, they both display that I am playing the game , but I do not see hosted game

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [August 28, 2018, 5:36pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2764 "2018-08-28T17:36:55Z")

</div>

> [@Artem\_K](#):
>
> thanks for the reply,  
> however widget interaction works when I simulate server+client right from the editor and does not work on the client when I run server and client on two different PCs.
> 
> And if I leave steam enabled and run both PCs with two different steam accounts, they both display that I am playing the game , but I do not see hosted game

Then you aren’t setting the widget interactors up correctly in multiplayer on possession.

For the second one, it works, you need to make sure your settings are correct and that the actual subsystem is loading up. Make sure that you have the steam overlay on shift-tab and run with logging enabled to check for sure that the subsystem is being created.

---

<div class="post-metadata">

**Author:** ![PucheDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/puchedev/32/978017_2.png) [@PucheDev](https://forums.unrealengine.com/u/PucheDev)\
**Post date:** [August 28, 2018, 8:04pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2765 "2018-08-28T20:04:29Z")

</div>

Nobody get a crash for unreal in VR with 4.20?

I can’t be the only one. If you go to the Project, and OPEN any MESH, the engine crash… I tested in 3 diferent PCs and i got the crash in the three… Can anyone test please?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2205daf8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2205daf8](https://forums.unrealengine.com/u/anonymous_user_2205daf8)\
**Post date:** [August 29, 2018, 4:32pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2767 "2018-08-29T16:32:21Z")

</div>

> [@](#):
>
> Then you aren’t setting the widget interactors up correctly in multiplayer on possession.

how should I set them up? I use your standard bp\_teleport\_controller and 3dwidget, did not do anything to customize their replication.

Here are screenshot representing how does it look like from both sides

Client side:

 ![server.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/0/f/e0f124a921c6f7ede8ebc09cfbca54f6f47c4d2b.png)

[Previous page](https://forums.unrealengine.com/t/vr-expansion-plugin/68709.md?page=134)

[Next page](https://forums.unrealengine.com/t/vr-expansion-plugin/68709.md?page=136)
