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

<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:** [July 6, 2017, 12:07am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1315 "2017-07-06T00:07:36Z")

</div>

> [@dixonian89;732787](#):
>
> thanks for the response! Yeah I’m not sure if I kept the external motion controllers or not. I probably did. I’ll see if I can find them when I get home from work tonight. As for the climbing explanation you gave me: I guess i’m too new to UE to understand what you are trying to explain. sorry. Not sure how I would Override the function and check if the passed object is a climbable sub type. I would love to learn what you are talking about if you can explain it to me or point me to a YouTube video of someone explaining overriding functions and having sub types. If you don’t have the time that’s totally fine. Thanks for what you have provided to me already! I’m excited for the can be climbed function call that will be added!

Yeah ok, I can go over that tomorrow, i’ll try and make a note of it.

Even if no-one shows with questions i’ll still stream it tomorrow and just make the change log / feature talk, I recorded a video for it for the people that talk to me through youtube:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/7/9175c3b79ea285ddab545750e8507fe594f5db81.jpeg "Attempting live Q&A") ](https://www.youtube.com/watch?v=dgYtnc43Bmo)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_650f1d25](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_650f1d25](https://forums.unrealengine.com/u/anonymous_user_650f1d25)\
**Post date:** [July 6, 2017, 1:42am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1316 "2017-07-06T01:42:28Z")

</div>

Was way cool you did , but unfortunately I wasn’t able to participate…

“I don’t have the hands in the template totally seperate like in Epics template.”

I set my hands up the same way (taking the cue from yours), and prefer it to Epic’s because now I only need to make changes to 1 hand to affect both.

Is there anything that can’t be done when you have the hands share the same mesh and AnimBP? (Hand-specific sockets could get messy, and the way you interface with the AnimBP has to be different, but other than that I can’t think of anything.)

---

<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:** [July 6, 2017, 3:35am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1318 "2017-07-06T03:35:11Z")

</div>

> [@;732854](#):
>
> Was way cool you did , but unfortunately I wasn’t able to participate…
> 
> “I don’t have the hands in the template totally seperate like in Epics template.”
> 
> I set my hands up the same way (taking the cue from yours), and prefer it to Epic’s because now I only need to make changes to 1 hand to affect both.
> 
> Is there anything that can’t be done when you have the hands share the same mesh and AnimBP? (Hand-specific sockets could get messy, and the way you interface with the AnimBP has to be different, but other than that I can’t think of anything.)

I haven’t done it yet, I just lost track of dates on my week off :eek: its tomorrow July\*\* 6th\*\* at 12 est.

Also no, not really, both hands should function pretty much the same, also separate hand specific sockets have an implementation in the working copy from week that I can go over tomorrow.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4f284332](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4f284332](https://forums.unrealengine.com/u/anonymous_user_4f284332)\
**Post date:** [July 6, 2017, 6:54am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1319 "2017-07-06T06:54:55Z")

</div>

Dear

Appreciation for the live Q&A. Unfortunately i missed the live session, hope i can see the recorded version.  
Currently i am facing a problem with the latest build of the plugin.

while opening your latest template it reports some vrexpansion.dll missing and do a manual build.

when i did a manual build using visual studio the following error appears. Please help

regards  
Jo

 ![54246f2de918bcd6ce6805d1406fe12076613bca.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/2/54246f2de918bcd6ce6805d1406fe12076613bca.jpeg)

---

<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:** [July 6, 2017, 12:46pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1320 "2017-07-06T12:46:09Z")

</div>

> [@Jomax3d;732943](#):
>
> Dear
> 
> Appreciation for the live Q&A. Unfortunately i missed the live session, hope i can see the recorded version.  
> Currently i am facing a problem with the latest build of the plugin.
> 
> while opening your latest template it reports some vrexpansion.dll missing and do a manual build.
> 
> when i did a manual build using visual studio the following error appears. Please help
> 
> regards  
> Jo

Your filenames are too long, drop the project back a folder as it has the auto generated zip title twice in there and is bloating the path length to longer than visual studio can handle.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9bb4b9e9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9bb4b9e9](https://forums.unrealengine.com/u/anonymous_user_9bb4b9e9)\
**Post date:** [July 6, 2017, 4:06pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1321 "2017-07-06T16:06:44Z")

</div>

Hey, I’ve been playing around with the example project, and I’ve found something that kind of bugs me.

One of the blueprints I made has a trigger volume on one end. For some reason, you can actually grab invisible volume and climb on it. Everything that that I’ve tried that changes also disables its trigger events.

Is there some way to have a working trigger volume that the VR character can’t grab onto? Like, some sort of setting you can change either in the character or on the trigger volume itself?

---

<div class="post-metadata">

**Author:** ![jesscxc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jesscxc](https://forums.unrealengine.com/u/jesscxc)\
**Post date:** [July 6, 2017, 5:02pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1322 "2017-07-06T17:02:42Z")

</div>

Thanks a lot for developing and sharing !!

\<3vr

---

<div class="post-metadata">

**Author:** ![FatMoth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FatMoth](https://forums.unrealengine.com/u/FatMoth)\
**Post date:** [July 6, 2017, 5:27pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1323 "2017-07-06T17:27:56Z")

</div>

Sweet, you were quick. Is the new example template live? Bit bucket says last update was 6/30.

---

<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:** [July 6, 2017, 6:34pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1324 "2017-07-06T18:34:39Z")

</div>

> [@FatMoth;733151](#):
>
> Sweet, you were quick. Is the new example template live? Bit bucket says last update was 6/30.

Nope, I want to get the last TODO items for the week in before I release it, expect it to be pushed live over the weekend.

Also here is the VOD from the Q&A / Go over:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/9/96920b5ead5b33e0d6508e1cdac3d1abb8964627.jpeg "Q&A session") ](https://www.youtube.com/watch?v=uptNr-2mNrU)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4f284332](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4f284332](https://forums.unrealengine.com/u/anonymous_user_4f284332)\
**Post date:** [July 7, 2017, 5:06am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1325 "2017-07-07T05:06:10Z")

</div>

> [@;733043](#):
>
> Your filenames are too long, drop the project back a folder as it has the auto generated zip title twice in there and is bloating the path length to longer than visual studio can handle.

Thank you very much . you saved a couple of days. I thought it was some installation issue as i updated Visual studio to 2017 and also unreal update… thanks a lot it also asked for windows SDK 8.1 although i had SDK10  
thanks for the helap and thanks for the Q&A video upload going through it

regards  
Jo

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9bb4b9e9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9bb4b9e9](https://forums.unrealengine.com/u/anonymous_user_9bb4b9e9)\
**Post date:** [July 7, 2017, 9:05pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1326 "2017-07-07T21:05:41Z")

</div>

Update: I figured out how to make the grabbing ignore trigger boxes and trigger spheres. Basically I had to edit the “Get Nearest Overlapping Object” function in the Vive\_PawnCharacter blueprint, and filter out any primitive components with the class “Box Collision” or “Sphere Collision” from the primitive component array. Sadly meant turning off the “trace sphere” method and sticking with the overlap method.

might be something you would wanna change sometime, unless you want the ability to grab these kinds of objects.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_50b6f9df](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_50b6f9df](https://forums.unrealengine.com/u/anonymous_user_50b6f9df)\
**Post date:** [July 7, 2017, 10:19pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1327 "2017-07-07T22:19:36Z")

</div>

Temp HUD menu – really interested

> [@;686427](#):
>
> No, its fairly alpha currently, I need to fix it in headspace. But for world space, just attach it to an actor, and set its widget to any random menu that you have (tested using the server browser). Unless the override is on it will render only in stereo layer while the HMD is active, it is best used for temporary menu’s in openVR though as there is no world depth for stereo layers in openVR. Oculus has a world depth and may perform with occlusion correctly, I can’t test.
> 
> The original idea is from Mitch, its just a lot cleaner and more compact to implement in C++ instead of blueprint.

Super cool template and functionalities!

So, I replaced the laser activate action in the left-controller, with a hold-pressing to show a VRStereoWidget that I’ve attached to the HeadMeash … but it is not interactable with the laser from the right-controller – like the server menu is (the one on the cube that has the “mirror”).

I understand that VRStereoWidget is alpha now; have you made any headway into its use as an interactable HUD? (I’m pretty sure I’m implementing it incorrectly on the Vive\_PawnCharacter.)

---

<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:** [July 8, 2017, 12:02am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1328 "2017-07-08T00:02:09Z")

</div>

> [@MevNav;733643](#):
>
> Update: I figured out how to make the grabbing ignore trigger boxes and trigger spheres. Basically I had to edit the “Get Nearest Overlapping Object” function in the Vive\_PawnCharacter blueprint, and filter out any primitive components with the class “Box Collision” or “Sphere Collision” from the primitive component array. Sadly meant turning off the “trace sphere” method and sticking with the overlap method.
> 
> might be something you would wanna change sometime, unless you want the ability to grab these kinds of objects.

? You don’t have to do that, just set things not to be blocked by VRTraceChannel and it won’t be a problem. I added a custom trace channel specifically for that reason.

Also sorry i missed your original post.

---

<div class="post-metadata">

**Author:** ![dixonian89](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dixonian89](https://forums.unrealengine.com/u/dixonian89)\
**Post date:** [July 8, 2017, 7:31pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1329 "2017-07-08T19:31:44Z")

</div>

How would I go about turning off the feature where the object you are holding stops moving if it hits non-movable collision (like a wall) and instead pass through it? I can’t find where it is doing that in the Blueprints. I’m trying to test a simple pool game and the cue keeps stopping when I go to hit the ball because it hits the collision of the table. Would I just need to disable it entirely, or would I be able to put in exclusions? How would I do either of these? 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:** [July 8, 2017, 10:34pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1330 "2017-07-08T22:34:59Z")

</div>

> [@dixonian89;733924](#):
>
> How would I go about turning off the feature where the object you are holding stops moving if it hits non-movable collision (like a wall) and instead pass through it? I can’t find where it is doing that in the Blueprints. I’m trying to test a simple pool game and the cue keeps stopping when I go to hit the ball because it hits the collision of the table. Would I just need to disable it entirely, or would I be able to put in exclusions? How would I do either of these? Thanks!

It obeys all common collision rules, so you can simply turn off collision with the table if you want to keep the physics rules.

However considering that you are making a pool game, the physics rules would be unwanted, so switch the grip type for the held cue to “Physics Only” (yes the naming may be a little confusing), PhysicsOnly means that it has no interactive collision and that the only collision is when physics objects get pushed around by it, basically it acts just like attaching but with all of the two handed grips and replication functionality.

---

<div class="post-metadata">

**Author:** ![dixonian89](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dixonian89](https://forums.unrealengine.com/u/dixonian89)\
**Post date:** [July 8, 2017, 11:22pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1331 "2017-07-08T23:22:41Z")

</div>

> [@;733965](#):
>
> It obeys all common collision rules, so you can simply turn off collision with the table if you want to keep the physics rules.
> 
> However considering that you are making a pool game, the physics rules would be unwanted, so switch the grip type for the held cue to “Physics Only” (yes the naming may be a little confusing), PhysicsOnly means that it has no interactive collision and that the only collision is when physics objects get pushed around by it, basically it acts just like attaching but with all of the two handed grips and replication functionality.

Thanks for the response! I’m really sorry for my ignorance from being extremely new to , but I dont understand how I would change the grip type to physics only for the cue? I found the “set grip collision type” function, but not sure how I would use it to set the grip for the cue.

---

<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:** [July 9, 2017, 12:33am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1332 "2017-07-09T00:33:25Z")

</div>

> [@dixonian89;733979](#):
>
> Thanks for the response! I’m really sorry for my ignorance from being extremely new to , but I dont understand how I would change the grip type to physics only for the cue? I found the “set grip collision type” function, but not sure how I would use it to set the grip for the cue.

If it is a grippable object base then you can simply change it in the VRGripInterfaceSettings on the object. There will be a grip type dropdown that you can change.

---

<div class="post-metadata">

**Author:** ![dixonian89](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dixonian89](https://forums.unrealengine.com/u/dixonian89)\
**Post date:** [July 9, 2017, 4:18am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1333 "2017-07-09T04:18:11Z")

</div>

> [@;733994](#):
>
> If it is a grippable object base then you can simply change it in the VRGripInterfaceSettings on the object. There will be a grip type dropdown that you can change.

Thanks for the help! I’ll give it a try!

---

<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:** [July 9, 2017, 7:52pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1334 "2017-07-09T19:52:23Z")

</div>

Pushed a new commit to the template and plugin - I’m still waiting on someone with touch to test something for me but the rest of it should be ok.

Template Changes

```auto

Changed up the VRCharacter so that gripping and using is also gameplay tag defined now.
Everything is now run off of one generic function that manages any button passed in
by comparing gameplay tags. Falls back to default tag values where appropriate.

*Note* Original character is now "VRCharacter_Legacy" and will be dropped at some point.

 allowed me to delete many extra functions that were pretty much just re-implementing
drop or grip logic for different buttons.

Removed a bunch of functions from VR character that were not needed.

Sorted all functions in VR character into categories.

Unlinked all OpenVR specific code (except for the controller loading since it just fails when out of platform).

Added an example StereoViewIndex post process material with a custom node that returns the eye index both in AND out of instanced stereo mode. can be used for
stereoscoptic textures.

Added HadHandSpecificSlots to gameplay tags so that the GetCorrectSocketPrefix can return VRGripLP or VRGripRP / VRGripTouchLP / VRGripTouchRP.

```

Plugin changes

```auto

initial setup of lever component, working on physics side of it.

Combined axis enums from button and lever components into EVRInteractibleAxis
Couldn't find a generic public XYZ enum in engine already to use.

*Note c++ lever component is still unfinished in update*

Added an OverridePrefix string intput to the FindClosestSlotInRange function.
 more easily allows the end user to do things like controller (touch vs vive)
or hand (Left vs Right) define custom grip sockets to a mesh.

IE: Pass in VRGripPLTouch for Left Hand Touch socket.

Moved secondary grip information into a seperate struct in the grip structure, not only does allow me to add some replication specific
additional properties to it. But it also should be more efficient to replicate as I can boolean control its replication without forcing
NetSerializer on the main struct. It also lets me just pass the struct for notification functions.

Added bIsSlotGrip to both primary and secondary grip structs, can be set when calling the grip function, useful for checking in the object later on.

Made it default to set physics gripped objects Center Of Mass to the controller location for the grip.

Added Option in advanced physics to turn off setting COM to grip location

```

---

<div class="post-metadata">

**Author:** ![Scrag85](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Scrag85](https://forums.unrealengine.com/u/Scrag85)\
**Post date:** [July 10, 2017, 7:34am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1336 "2017-07-10T07:34:52Z")

</div>

Can you open the “Playable Template Demo” in the UE4 editor?

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

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