# 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:** 114

<div class="post-metadata">

**Author:** ![anonymous\_user\_0cba8eb9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0cba8eb9](https://forums.unrealengine.com/u/anonymous_user_0cba8eb9)\
**Post date:** [April 11, 2018, 2:58pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2322 "2018-04-11T14:58:47Z")

</div>

@

Wow, that was it! I tried around for hours, even changed to a pc with different admin rights, but it seems as if my path was always too long. I didn’t suspect at all since I’m only a few folders deep, but it works if I try the same steps directly in the D: folder.

Thank you so much for your help! I’ll try to play around in the scene now.

---

<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:** [April 11, 2018, 4:25pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2323 "2018-04-11T16:25:18Z")

</div>

> [@Lichtdrache](#):
>
> @
> 
> Wow, that was it! I tried around for hours, even changed to a pc with different admin rights, but it seems as if my path was always too long. I didn’t suspect at all since I’m only a few folders deep, but it works if I try the same steps directly in the D: folder.
> 
> Thank you so much for your help! I’ll try to play around in the scene now.

Its one of the hold overs of the OS that people keep running in to, the warnings it generates are really obtuse, think you are the 5th person where that was the problem.

---

<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:** [April 12, 2018, 1:20pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2324 "2018-04-12T13:20:52Z")

</div>

Pushed another commit to the plugin

```auto

 
 Fixing another bug introduced with the new rotation correction system   
 ( was kind of unrelated, forgot to replicate a value with teleport). 

```

Thanks for the stability testing reports, it is easy to oversee a few things when making a change big. Hopefully that fixes the major missed items.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ca4238ec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ca4238ec](https://forums.unrealengine.com/u/anonymous_user_ca4238ec)\
**Post date:** [April 13, 2018, 2:04pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2325 "2018-04-13T14:04:51Z")

</div>

Hi,

Sorry if my problem will seem obvious, I just started to use the template and I have a lot of things to discover.  
So I created a C++ project with the plugin and I imported the assets from the template example level. Everything works fine  
for the movements, teleportation etc…

But I can’t grip anything. I just tried to test it with a BP\_PickupCube instance and it doesn’t work at all. When I dug into the blueprint  
code itself, I found that in the function GetNearestOverlappingObject called when trying to grip something, the nearest object found is  
always… the Vive pawn itself! I really don’t understand why, especially because when I directly test the example project it works perfectly.

---

<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:** [April 13, 2018, 3:20pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2326 "2018-04-13T15:20:33Z")

</div>

> [@dborry](#):
>
> Hi,
> 
> Sorry if my problem will seem obvious, I just started to use the template and I have a lot of things to discover.  
> So I created a C++ project with the plugin and I imported the assets from the template example level. Everything works fine  
> for the movements, teleportation etc…
> 
> But I can’t grip anything. I just tried to test it with a BP\_PickupCube instance and it doesn’t work at all. When I dug into the blueprint  
> code itself, I found that in the function GetNearestOverlappingObject called when trying to grip something, the nearest object found is  
> always… the Vive pawn itself! I really don’t understand why, especially because when I directly test the example project it works perfectly.

You didn’t move over the VRTrace tracing channel, I use a seperate trace channel so I can deny things from even being hit when checking for grips.

You can change the channel in the BPs and set the actor to ignore it, or you can import the channel from the template.

Also you might have forgot to migrate the gameplay tags.

You can hit yourself btw because if I ignored the actor entirely it would also ignore attached components that you may want to grab.

---

<div class="post-metadata">

**Author:** ![spaceWumpus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spaceWumpus](https://forums.unrealengine.com/u/spaceWumpus)\
**Post date:** [April 13, 2018, 8:13pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2327 "2018-04-13T20:13:54Z")

</div>

Hi,  
Thanks for a great plugin - certainly puts the default VR template to shame!

I’ve been fiddling with the teleport system to ignore the nav-mesh, and to instead consider any static mesh surface with less than a given inclination to be a valid target.  
means that you will often not have a valid target (unlike the original system which pretty much only had no target if you aimed off the edge of the world).  
is fine - I’ve tweaked things so that the beam arc is still shown whether the target is valid or not (but the destination cylinder isn’t), so you can see where you are hitting.  
All pretty simple stuff, and so far so good.

However, when the target isn’t valid, I’d like to display the beam in a different color.  
Should be simple, surely…  
I see that M\_SplineArcMat is the material applied to the arc, but I’m still in the early days of Unreal, and I can’t figure out where is actually applied.  
The arc mesh appears to be made of BeamMesh instances (which has a default material applied).  
If I select M\_SplineArcMat in Content Browser, then right-click ‘Reference Viewer’, it says that it is used by BP\_Teleport\_Controller, but I cannot find **where** it uses it.  
I must be missing something really simple, but I’ve been searching for ages and just cannot find it.

Can anyone give me a nudge in the right direction, please?

---

<div class="post-metadata">

**Author:** ![39lamp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@39lamp](https://forums.unrealengine.com/u/39lamp)\
**Post date:** [April 14, 2018, 12:39pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2328 "2018-04-14T12:39:49Z")

</div>

Hello.

How can I hide vive controllers, and replace them with Mannequin Hands?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ca4238ec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ca4238ec](https://forums.unrealengine.com/u/anonymous_user_ca4238ec)\
**Post date:** [April 16, 2018, 9:02am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2329 "2018-04-16T09:02:33Z")

</div>

> [@](#):
>
> You didn’t move over the VRTrace tracing channel, I use a seperate trace channel so I can deny things from even being hit when checking for grips.
> 
> You can change the channel in the BPs and set the actor to ignore it, or you can import the channel from the template.
> 
> Also you might have forgot to migrate the gameplay tags.
> 
> You can hit yourself btw because if I ignored the actor entirely it would also ignore attached components that you may want to grab.

Well, the gameplay tags were the problem. I didn’t forget to import them but I did it after the blueprints, so they could not be set up. I specified them  
in the pawn blueprint and now it works perfectly. My bad !

---

<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:** [April 16, 2018, 12:15pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2330 "2018-04-16T12:15:02Z")

</div>

> [@39lamp](#):
>
> Hello.
> 
> How can I hide vive controllers, and replace them with Mannequin Hands?

There is a section of the character showing the model loading code, you can delete it and the manniquin hands should already be there.

When Epic finishes bug fixing their model loading I’ll be deprecating all of that anyway.

---

<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:** [April 16, 2018, 12:17pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2331 "2018-04-16T12:17:02Z")

</div>

> [@spaceWumpus](#):
>
> Hi,  
> Thanks for a great plugin - certainly puts the default VR template to shame!
> 
> I’ve been fiddling with the teleport system to ignore the nav-mesh, and to instead consider any static mesh surface with less than a given inclination to be a valid target.  
> means that you will often not have a valid target (unlike the original system which pretty much only had no target if you aimed off the edge of the world).  
> is fine - I’ve tweaked things so that the beam arc is still shown whether the target is valid or not (but the destination cylinder isn’t), so you can see where you are hitting.  
> All pretty simple stuff, and so far so good.
> 
> However, when the target isn’t valid, I’d like to display the beam in a different color.  
> Should be simple, surely…  
> I see that M\_SplineArcMat is the material applied to the arc, but I’m still in the early days of Unreal, and I can’t figure out where is actually applied.  
> The arc mesh appears to be made of BeamMesh instances (which has a default material applied).  
> If I select M\_SplineArcMat in Content Browser, then right-click ‘Reference Viewer’, it says that it is used by BP\_Teleport\_Controller, but I cannot find **where** it uses it.  
> I must be missing something really simple, but I’ve been searching for ages and just cannot find it.
> 
> Can anyone give me a nudge in the right direction, please?

It is spawning spline mesh components to follow the curvature of the spline, you’ll have to set the material (or a material property) for them.

---

<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:** [April 17, 2018, 3:52am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2332 "2018-04-17T03:52:49Z")

</div>

ok so i have a strange bug. i had had a project… have issues. so i rebuilt it from a fresh template and migrated custom content over.  
im not sure that that has anything to do with it. and ill explain why, but im not sure what the problem could be.

from point forward every gun i spawn in a world. original code or my edited code. doesnt matter. when i pick it up it points strait down. previously placed guns work fine. even the migrated ones that are custom. but newly placed does not.

have you ever seen , and do you know how to fix it

---

<div class="post-metadata">

**Author:** ![Bino](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bino](https://forums.unrealengine.com/u/Bino)\
**Post date:** [April 17, 2018, 5:12am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2333 "2018-04-17T05:12:01Z")

</div>

Hi,

Big fan of plugin. I’m mainly integrating it via C++ and found I needed the following changes.

I think my approach has maintained the patterns you have. But correct me if I’m wrong 🙂

**GripMotionControllerComponent::GripObjectByInterface**

When function eventually calls GripComponent it passes NAME\_None as the socket name. I needed to add an optional socket name parameter to function and pass it. Now grips at the socket location.

**GripMotionControllerComponent::AddSecondaryAttachmentPoint**

I create a BP that inherits a grippable static mesh. The secondary grip event wasn’t being fired. In other functions you test for the interface on the component and if that fails you try on the Owner. I added that same pattern here. Now works.

---

<div class="post-metadata">

**Author:** ![wontonanimalchin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wontonanimalchin](https://forums.unrealengine.com/u/wontonanimalchin)\
**Post date:** [April 17, 2018, 8:54am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2334 "2018-04-17T08:54:32Z")

</div>

Hi,  
i just tried it for 4.19. But somehow the plugin is downloaded for 4.18 ([https://bitbucket.org//vrexpansionplugin/downloads/](https://bitbucket.org//vrexpansionplugin/downloads/)). And when i open my 4.19 project, the plugin shows 4.18 indeed. And i am not able to get the whole map in the project. It just opends as a blank project. I can remember that the first time i did , that your whole example project opened. Do i make a mistake?

---

<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:** [April 17, 2018, 12:24pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2335 "2018-04-17T12:24:07Z")

</div>

> [@wontonanimalchin](#):
>
> Hi,  
> i just tried it for 4.19. But somehow the plugin is downloaded for 4.18 ([https://bitbucket.org//vrexpansionplugin/downloads/](https://bitbucket.org//vrexpansionplugin/downloads/)). And when i open my 4.19 project, the plugin shows 4.18 indeed. And i am not able to get the whole map in the project. It just opends as a blank project. I can remember that the first time i did , that your whole example project opened. Do i make a mistake?

4.18 there was me forgetting to update the plugin information file, it is ignorable as the actual template is on 4.19

As for a blank project, are you sure you opened the correct one / the correct map?

---

<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:** [April 17, 2018, 12:25pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2336 "2018-04-17T12:25:19Z")

</div>

> [@sphinix257](#):
>
> ok so i have a strange bug. i had had a project… have issues. so i rebuilt it from a fresh template and migrated custom content over.  
> im not sure that that has anything to do with it. and ill explain why, but im not sure what the problem could be.
> 
> from point forward every gun i spawn in a world. original code or my edited code. doesnt matter. when i pick it up it points strait down. previously placed guns work fine. even the migrated ones that are custom. but newly placed does not.
> 
> have you ever seen , and do you know how to fix it

No I have never seen it, I would expect it to be a socket offset but can’t really tell remotely.

---

<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:** [April 17, 2018, 12:35pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2337 "2018-04-17T12:35:07Z")

</div>

> [@Bino](#):
>
> Hi,
> 
> Big fan of plugin. I’m mainly integrating it via C++ and found I needed the following changes.
> 
> I think my approach has maintained the patterns you have. But correct me if I’m wrong 🙂
> 
> **GripMotionControllerComponent::GripObjectByInterface**
> 
> When function eventually calls GripComponent it passes NAME\_None as the socket name. I needed to add an optional socket name parameter to function and pass it. Now grips at the socket location.
> 
> \*\*I tend to prefer using direct transforms of sockets now instead of the SocketName parameter, it is more flexible and user controllable (GetSocketTransform - pass in as relative grip transform). It also lets the user directly make use of my new controller profiles system to alter socket grip transforms per controller type. Rather than adding the SocketName parameter to a new location, I would favor removing it from its current locations instead.
> 
> The example template never uses the socketname parameter anymore, it only passes in transforms.\*\*
> 
> **GripMotionControllerComponent::AddSecondaryAttachmentPoint**
> 
> I create a BP that inherits a grippable static mesh. The secondary grip event wasn’t being fired. In other functions you test for the interface on the component and if that fails you try on the Owner. I added that same pattern here. Now works.
> 
> \*\*Those secondary cases are for looking for the interface, then it switches to an actor / component grip based on that. If your “actor” wasn’t receiving the secondary grip event it was because the “child” grippable is the one being gripped and it was the one that received the event (as it should).
> 
> The plugin grips both actors and components, and components have priority so you can separately grip components in a grippable actor. The correct way of receiving your secondary attachment notice in the actor would have been to add an “OnChildSecondaryAttachment” event and fire it off on the owner / parent component as well. However generally two handed interactions are done with actors and you can subclass a grippable component and pass the event up to your custom actor anyway so I don’t feel like it is worth the interface bloat to add another event case for .\*\*

Replies in quote above.

Suggestions and ideas are always welcome, no matter my response above, thanks for suggesting!

---

<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:** [April 18, 2018, 1:19am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2338 "2018-04-18T01:19:06Z")

</div>

> [@](#):
>
> No I have never seen it, I would expect it to be a socket offset but can’t really tell remotely.

it was socket. it was rotated 70 degrees down. strang. it looked like it before. but i may could have messed it up. even though i really dont know why i would have touched that setting or why it only struck new instances with that issue.

thankyou. its fixed now

---

<div class="post-metadata">

**Author:** ![wontonanimalchin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wontonanimalchin](https://forums.unrealengine.com/u/wontonanimalchin)\
**Post date:** [April 18, 2018, 5:32am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2339 "2018-04-18T05:32:02Z")

</div>

> [@](#):
>
> 4.18 there was me forgetting to update the plugin information file, it is ignorable as the actual template is on 4.19
> 
> As for a blank project, are you sure you opened the correct one / the correct map?

thanks man. It works fine right now. Started just new project with your template. Few months of fun, 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:** [April 18, 2018, 8:06pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2340 "2018-04-18T20:06:53Z")

</div>

Pushed a new commit to the plugin

```auto

Took a pass over the capsule height replication, had to fix it for simulated clients Also wanted to clean it up and its use.

Moved the VRReplicateCapsuleHeight boolean to the character instead of the movement component as it makes more sense there.

Use SetCharacterHalfHeightVR() node to properly set capsule height for replication.

If you only need two states, crouch and standing, its better to still use the Crouch commands as they are more efficient

```

---

<div class="post-metadata">

**Author:** ![Reaver47](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Reaver47](https://forums.unrealengine.com/u/Reaver47)\
**Post date:** [April 19, 2018, 9:37am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2341 "2018-04-19T09:37:00Z")

</div>

Hi, thank you for plugin, is really awesome. Is there a way to make the object you grab collide with environment like walls and block the hand? like when you grab the disk of echo arena or a part of the robot of RoboRecall ? thank you

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

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