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

<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:** [June 21, 2018, 12:22pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2524 "2018-06-21T12:22:50Z")

</div>

> [@Mallory85](#):
>
> can you show me how to do it?

Download the template if you aren’t using it, look in the player controller class in the editor that it is using, I have a spawn offset in there (recently changed),

---

<div class="post-metadata">

**Author:** ![JUDGE\_DREDD\_VR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JUDGE\_DREDD\_VR](https://forums.unrealengine.com/u/JUDGE_DREDD_VR)\
**Post date:** [June 21, 2018, 12:29pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2525 "2018-06-21T12:29:51Z")

</div>

> [@](#):
>
> Download the template if you aren’t using it, look in the player controller class in the editor that it is using, I have a spawn offset in there (recently changed),

I use the template and i see the player controller but i dont understand how to make it how can I do that the camera always s.der same point is no matter where the headset is at spawn.

the easiest for me would be a picture of how to do that in 4.18

---

<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:** [June 21, 2018, 1:45pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2526 "2018-06-21T13:45:00Z")

</div>

> [@Mallory85](#):
>
> I use the template and i see the player controller but i dont understand how to make it how can I do that the camera always s.der same point is no matter where the headset is at spawn.
> 
> the easiest for me would be a picture of how to do that in 4.18

I’ll PM you a UE4Paste of the nodes in the player controller, the reason I told you to look in there is because it already exists there for direct reference which is better than an image.

I would prefer you keep moderate questions to PM or discord too in the future, back and forth conversations in the forum thread just clutter it up.

---

<div class="post-metadata">

**Author:** ![mechanicalsnowman](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mechanicalsnowman/32/88714_2.png) [@mechanicalsnowman](https://forums.unrealengine.com/u/mechanicalsnowman)\
**Post date:** [June 21, 2018, 8:04pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2527 "2018-06-21T20:04:01Z")

</div>

> [@](#):
>
> Also no, I haven’t had packaged specific overlap issues.

I’ve done some further testing, not sure what it means but here are the results -

**When Blueprint Nativization is enabled and game packaged** , the capsule of the VR Character doesn’t seem to generate overlaps. I tried with some non-player Blueprints and it seems to only be an issue with the VR Character capsule.

Overlap events on the VR Character blueprint, and overlap events on a separate blueprint that overlaps the VR Character (the capsule, specifically) don’t fire, but overlap events between two non-player blueprints fire.

**When the game is packaged with Blueprint Nativization off** , all overlap events occur as expected.

does seem to be a VR Character specific issue. If nativization is turned on for “_selected Blueprint assets only_”, and I only nativize the VR Character, it also breaks the overlaps in a packaged game.

I’ll do some more tests later with a standard base UE4 character to see if the problem is some sort of character-wide issue, there seems to be only a handful of people mentioning about overlaps stopping working in packaged game though, so I would guess it’s a problem with my project or a problem with the plugin :eek:

Edit: my Build config is Development for Win64 fwiw

By the way, you mentioned you’re on Discord, I’d love to get your Discord server / handle so I can bug you directly if that’s cool 🆒

---

<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:** [June 21, 2018, 9:11pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2528 "2018-06-21T21:11:45Z")

</div>

> [@mechanicalsnowman](#):
>
> I’ve done some further testing, not sure what it means but here are the results -
> 
> **When Blueprint Nativization is enabled and game packaged** , the capsule of the VR Character doesn’t seem to generate overlaps. I tried with some non-player Blueprints and it seems to only be an issue with the VR Character capsule.
> 
> Overlap events on the VR Character blueprint, and overlap events on a separate blueprint that overlaps the VR Character (the capsule, specifically) don’t fire, but overlap events between two non-player blueprints fire.
> 
> **When the game is packaged with Blueprint Nativization off** , all overlap events occur as expected.
> 
> does seem to be a VR Character specific issue. If nativization is turned on for “_selected Blueprint assets only_”, and I only nativize the VR Character, it also breaks the overlaps in a packaged game.
> 
> I’ll do some more tests later with a standard base UE4 character to see if the problem is some sort of character-wide issue, there seems to be only a handful of people mentioning about overlaps stopping working in packaged game though, so I would guess it’s a problem with my project or a problem with the plugin :eek:
> 
> Edit: my Build config is Development for Win64 fwiw
> 
> By the way, you mentioned you’re on Discord, I’d love to get your Discord server / handle so I can bug you directly if that’s cool 🆒

Discord name is: #2571 I am in the UE4 slackers discord VR channel usually as well.

As for nativization, there isn’t much I can do about that screwing up, it is auto generated code from Epic that is being created and it isn’t 100% perfect yet. 4.20 I think finally has a fix for one issue that was preventing it for a long time now with the plugin. Its only converting blueprints, so the plugin itself wouldn’t be the issue, it would be their translating from BP to c++ that would have errors there. None of the capsule movement / overlap code is in blueprints, there were some issues with it finding plugin code correctly too but it should fail out in that case.

Its possible the overlap events themselves just are never bound to when nativized currently, I wouldn’t know as I haven’t played with it too much to point due to other issues with it getting in the way.

---

<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:** [June 24, 2018, 11:54pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2529 "2018-06-24T23:54:59Z")

</div>

hey is grip priority not functional and if so will it be in an upcoming version. the tool tip says its not enabled but i would really like it to ensure i grip the most relent part of objects with alot of moving bits. like guns and my doors

edit im on probably the earliest version of a 4.19 build

---

<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:** [June 25, 2018, 12:00am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2530 "2018-06-25T00:00:12Z")

</div>

> [@sphinix257](#):
>
> hey is grip priority not functional and if so will it be in an upcoming version. the tool tip says its not enabled but i would really like it to ensure i grip the most relent part of objects with alot of moving bits. like guns and my doors
> 
> edit im on probably the earliest version of a 4.19 build

Grip priority is there for the end user to implement how they see fit, it made sense to have in the interface and the template uses it, however since I don’t dictate when/if you grip an object then I can’t filter by it for you. I intentionally leave the plugin blind to the logic behind why and when to grip things, keeps it as flexible as possible.

Like I said though, the template uses it in its overlap / trace detection to choose the best target, and it works well like that. You can straight up copy that implementation if you are working from a non templated project.

If your project IS based off of the template, then its already functional and you just need to use it.

---

<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:** [June 25, 2018, 1:43am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2531 "2018-06-25T01:43:42Z")

</div>

> [@](#):
>
> Grip priority is there for the end user to implement how they see fit, it made sense to have in the interface and the template uses it, however since I don’t dictate when/if you grip an object then I can’t filter by it for you. I intentionally leave the plugin blind to the logic behind why and when to grip things, keeps it as flexible as possible.
> 
> Like I said though, the template uses it in its overlap / trace detection to choose the best target, and it works well like that. You can straight up copy that implementation if you are working from a non templated project.
> 
> If your project IS based off of the template, then its already functional and you just need to use it.

Awsome. But at point most of it is unrecognizable to you and i have to rewrite the grip logic because i would like more control than the template had. In terms of things like the secondary grip persisting after the primary releases

​​And i dont like using code i didn’t write unless ive learned it inside and out(and probably edited)

Where should I look to get the related code

---

<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:** [June 25, 2018, 2:29am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2532 "2018-06-25T02:29:39Z")

</div>

> [@sphinix257](#):
>
> Awsome. But at point most of it is unrecognizable to you and i have to rewrite the grip logic because i would like more control than the template had. In terms of things like the secondary grip persisting after the primary releases
> 
> ​​And i dont like using code i didn’t write unless ive learned it inside and out(and probably edited)
> 
> Where should I look to get the related code

In the GetClosestObject function, newer versions of it get all objects instead of first and sort by priority and then by 1st in.

---

<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:** [June 25, 2018, 4:26am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2533 "2018-06-25T04:26:37Z")

</div>

> [@](#):
>
> In the GetClosestObject function, newer versions of it get all objects instead of first and sort by priority and then by 1st in.

Cool. 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:** [June 26, 2018, 1:03am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2534 "2018-06-26T01:03:19Z")

</div>

Added new game to the use list: [Social Club VR: Casino Nights](https://store.steampowered.com/app/708760/Social_Club_VR__Casino_Nights/)

Updated [Nightstar Alliance](https://store.steampowered.com/app/864970/NIGHTSTAR_Alliance/) to released

---

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

</div>

hey you said a while back you where removing the vr slider component. is there going to be an upgraded version. or is there just a better way you found to achieve the results. because i was kinda interested in the splined version i saw you demoing a while back. and it seemed more convent in blueprints for drawers

---

<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:** [June 26, 2018, 1:39am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2536 "2018-06-26T01:39:51Z")

</div>

> [@sphinix257](#):
>
> hey you said a while back you where removing the vr slider component. is there going to be an upgraded version. or is there just a better way you found to achieve the results. because i was kinda interested in the splined version i saw you demoing a while back. and it seemed more convent in blueprints for drawers

i’m not removing the VR slider, i am removing the InteractibleSettings because the VRSlider makes it out of date (as well as the other interactibles and custom grips making the settings defunct).

In fact the 4.20 template uses the slider for the drawers now since the interatible settings is gone, the same slider that handles splines.

---

<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:** [June 26, 2018, 4:40am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2537 "2018-06-26T04:40:00Z")

</div>

> [@](#):
>
> i’m not removing the VR slider, i am removing the InteractibleSettings because the VRSlider makes it out of date (as well as the other interactibles and custom grips making the settings defunct).
> 
> In fact the 4.20 template uses the slider for the drawers now since the interatible settings is gone, the same slider that handles splines.

Cool. That is very helpful. Because I liked using it. i must have read your message wrong at the time.

Would you advise it for a tracking solution on a bolt action rifle or have you seen better easier ways

---

<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:** [June 26, 2018, 12:37pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2538 "2018-06-26T12:37:41Z")

</div>

> [@sphinix257](#):
>
> Cool. That is very helpful. Because I liked using it. i must have read your message wrong at the time.
> 
> Would you advise it for a tracking solution on a bolt action rifle or have you seen better easier ways

If you want a basic linear sliding bolt it is fine (can have a rotated spline so the bolt auto rotates into position even), if you want a totally realistic one with a hard lock, then a rotation, then I wouldn’t. It would be easy enough to achieve with a custom grip to get the exact perfect behavior you want for an advanced one, and the template has an example custom grip slider that includes rotation like a lever as well that you could base it off of.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bfd0ebe5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bfd0ebe5](https://forums.unrealengine.com/u/anonymous_user_bfd0ebe5)\
**Post date:** [June 28, 2018, 4:40pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2539 "2018-06-28T16:40:13Z")

</div>

Thanks for putting together great plugin. I had one question - is there a straightforward way to implement Z-axis movement (I just want to be able to float in the air and come back down)?

---

<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:** [June 28, 2018, 5:23pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2540 "2018-06-28T17:23:28Z")

</div>

> [@snakeviper1776](#):
>
> Thanks for putting together great plugin. I had one question - is there a straightforward way to implement Z-axis movement (I just want to be able to float in the air and come back down)?

Well…there is a flying movement mode?

---

<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:** [June 29, 2018, 4:39pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2541 "2018-06-29T16:39:24Z")

</div>

Changed use project “Contagion VR: Outbreak” from WIP to Early Access.

It released today

---

<div class="post-metadata">

**Author:** ![MagicBots](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MagicBots](https://forums.unrealengine.com/u/MagicBots)\
**Post date:** [June 30, 2018, 2:59am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2542 "2018-06-30T02:59:32Z")

</div>

Is it possible to grip a component from your own character? The first quick tests I tried didn’t work (wouldn’t grip), and before looking into it, I thought I’d just quickly ask if it’s possible by design first. I wanted to grip a child component, move it around, and then on grip-release take the resulting relative transform of the child, apply the delta to the parent, and then re-zero out the child gripped component.

---

<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:** [June 30, 2018, 2:59pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2543 "2018-06-30T14:59:31Z")

</div>

> [@MagicBots](#):
>
> Is it possible to grip a component from your own character? The first quick tests I tried didn’t work (wouldn’t grip), and before looking into it, I thought I’d just quickly ask if it’s possible by design first. I wanted to grip a child component, move it around, and then on grip-release take the resulting relative transform of the child, apply the delta to the parent, and then re-zero out the child gripped component.

Yes, but you’d have to change the overlap / trace checks for gripping so that they don’t ignore their parent actor. Currently they ignore “self” on tracing, its a simple fix in the GetClosestObject function.

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

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