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

<div class="post-metadata">

**Author:** ![TheFoyer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheFoyer](https://forums.unrealengine.com/u/TheFoyer)\
**Post date:** [September 2, 2016, 5:51pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/82 "2016-09-02T17:51:01Z")

</div>

> [@;588439](#):
>
> Yeah I actually have it print to the log saying “Call on the server” when you call it from the client as well.

Hm maybe it’s possibly I glossed over it but don’t recall that! In VR it’s almost impossible to see the log messages if they print to screen (don’t know if those do or not)

\> Keep in mind that I have the grip movement all client side currently

Does that mean the movement is processed client side so it would be possible to inject your own values? Luckily that’s not a concern for myself but good to know for future reference.

---

<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:** [September 2, 2016, 6:20pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/83 "2016-09-02T18:20:18Z")

</div>

> [@TheFoyer;588851](#):
>
> Hm maybe it’s possibly I glossed over it but don’t recall that! In VR it’s almost impossible to see the log messages if they print to screen (don’t know if those do or not)
> 
> \> Keep in mind that I have the grip movement all client side currently
> 
> Does that mean the movement is processed client side so it would be possible to inject your own values? Luckily that’s not a concern for myself but good to know for future reference.

Well you could always inject your own values even if the server denied it, just run OnHit events and position checks on the server side and its all good. When objects are attached to actors they actually stop replicating as well and each client updates their position instead, It works like that currently for my grip system. Like I said I intend to make it optional to have server side position and it will work pretty good with the hybrid grid, but having latency in the other grips when trying to move is really jarring.

Not to mention the ultimate problem that in VR the client is the authority for where their limbs are.

Also that warning prints to the editor log, not to the screen.

---

<div class="post-metadata">

**Author:** ![tcla75](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tcla75](https://forums.unrealengine.com/u/tcla75)\
**Post date:** [September 3, 2016, 8:44pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/84 "2016-09-03T20:44:58Z")

</div>

Can anyone tell me what I am doing wrong here? I’m following these instructions.

Clone Or Download Zip and extract repository to a folder named “VRExpansionPlugin” in your “ProjectName/Plugins” directory, create directory if it is missing.

So I do that exactly.  
 ![Docs.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/c/aca0dabf377df9bfac02b10f34ba0750cfd59002.jpeg)

But then I get error on launch.

![87a0a6ce83157e1414da33f4d65217a5ccb1b8bf.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/a/87a0a6ce83157e1414da33f4d65217a5ccb1b8bf.jpeg)  
 ![e414f3aeee24068c9e2edfea45fa9e85af4f7747.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/1/e414f3aeee24068c9e2edfea45fa9e85af4f7747.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:** [September 3, 2016, 9:49pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/85 "2016-09-03T21:49:12Z")

</div>

It needs to be recompiled? If you updated to 4.13 the current repository version is still for 4.12.5. It works on 4.13 but has to be re-compiled for it.

My 4.13 specific branch is undergoing heavy changes so I don’t feel comfortable releasing it yet. is part of the issue of supporting multiple engine versions.

I believe that the template using it has a pre-compile version for 4.13 currently.

---

<div class="post-metadata">

**Author:** ![n00854180t](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@n00854180t](https://forums.unrealengine.com/u/n00854180t)\
**Post date:** [September 4, 2016, 2:31am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/86 "2016-09-04T02:31:17Z")

</div>

- Have you tried using CCD for the hybrid mode? Might help the tunneling in those corner cases.

---

<div class="post-metadata">

**Author:** ![tcla75](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tcla75](https://forums.unrealengine.com/u/tcla75)\
**Post date:** [September 4, 2016, 12:10pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/88 "2016-09-04T12:10:09Z")

</div>

> [@Saiodin;589555](#):
>
> @tcla75 I had problems recompiling my project too. Made a new one (BP), compiled with an empty c++ class, added the plugin in the folder, recompiled again, then it worked. Migrated my content from the old project and adjusted it. Guess that just works if you’re not that far with your project tho.  
> : Thanks a lot for plugin, it’s really helped me out with the object interaction. It’s actually the first one I’m using, for new versions I assume I’ll just have to copy in the new version of the plugin and recompile?

Thanks Saiodin. I actually found an easier way which was removing the plugin from my project, adding c++ to it (Which I didn’t have,BP only) then restart it and then it asked me to rebuild it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ade835df](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ade835df](https://forums.unrealengine.com/u/anonymous_user_ade835df)\
**Post date:** [September 4, 2016, 2:52pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/89 "2016-09-04T14:52:16Z")

</div>

I just tried the 4.13 VR template and found it to be greatly lacking (w/ regards to player collision) compared to plugin, so I’ll be sticking with it for now. 🙂

I’m having a heck of a time getting grab / drop to work (being a horrible newbie to UE4 and all) and was wondering if there are any step-by-step guides on setting up with VREP I could follow, just to get my bearings. I couldn’t even get overlap events to trigger. ☹

---

<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:** [September 4, 2016, 4:25pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/90 "2016-09-04T16:25:09Z")

</div>

> [@n00854180t;589465](#):
>
> - Have you tried using CCD for the hybrid mode? Might help the tunneling in those corner cases.

I don’t want to force CCD on for anything due to its performance hit, I think I found where it was going wrong last night though and intend to try and get it up and running today.

---

<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:** [September 4, 2016, 4:33pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/91 "2016-09-04T16:33:35Z")

</div>

> [@tcla75;589586](#):
>
> Thanks Saiodin. I actually found an easier way which was removing the plugin from my project, adding c++ to it (Which I didn’t have,BP only) then restart it and then it asked me to rebuild it.

You need to have a c++ class anyway for packaging since it is a source based plugin. You can package them like the marketplace does with just binaries but then it has to be installed in the engines directory and that is a lot harder to manage with something going through constant changes.

---

<div class="post-metadata">

**Author:** ![n00854180t](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@n00854180t](https://forums.unrealengine.com/u/n00854180t)\
**Post date:** [September 4, 2016, 5:29pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/92 "2016-09-04T17:29:46Z")

</div>

> [@;589678](#):
>
> I don’t want to force CCD on for anything due to its performance hit, I think I found where it was going wrong last night though and intend to try and get it up and running today.

For the case of two objects \* number of clients, it’s not enough to matter IMO. You tend to run into big perf hits with CCD mainly when using a _lot_ of them all colliding together. In my most recent tests I was able to do about 150-200 CCD objects all colliding together with minimal framerate hit. 50-100 had no hit.

---

<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:** [September 4, 2016, 6:24pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/93 "2016-09-04T18:24:17Z")

</div>

> [@n00854180t;589712](#):
>
> For the case of two objects \* number of clients, it’s not enough to matter IMO. You tend to run into big perf hits with CCD mainly when using a _lot_ of them all colliding together. In my most recent tests I was able to do about 150-200 CCD objects all colliding together with minimal framerate hit. 50-100 had no hit.

Thats not the point, if I can fix it without CCD than I should strive to.

---

<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:** [September 8, 2016, 12:29pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/95 "2016-09-08T12:29:26Z")

</div>

> [@Saiodin;591162](#):
>
> I’m a bit lost regarding OptionalSnapToSocketName of the Motion Controller. Documentation says it doesn’t work for childs of the component (like a static mesh, which doesn’t work for me), so how do we make use of ? Is there a way to create a socket for the Motion Controller component?

I understand your confusion, the socket is to be on the object that you are picking up, not the motion controller itself. That way each actor can have its own grip “points” on it that it can choose from depending on the hands position when gripping.

It offloads the logic of where to place items into an interface / the objects themselves so that it is more flexible.

For example a sword, you would place a socket on the sword mesh at the hilt and pass that socket name in when gripping it, the motion controller then finds that sockets position relative to the motion controller and uses it as the grip point. You don’t need to use that shortcut though, you can pass in socket transforms yourself if you set the grip as “bAlreadyRelative”.

---

<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:** [September 8, 2016, 5:47pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/97 "2016-09-08T17:47:48Z")

</div>

> [@Saiodin;591763](#):
>
> Ah yes, worked and made a lot of sense. Thank you!  
> Another matter regarding teleporting I encountered is that when gripping an object and teleporting the gripped object will do a 360 degree spin once teleported. Your docs say “TeleportTo - The standard teleport function is overridden in character, it will automatically call the GripMotionControllers - PostTeleportMoveActors() function in it.”. Is rotation set with the PostTeleport function or just location? Maybe was overlooked with cube test objects? It is very noticable once you’re using longer objects like a staff.

if you are using the physics grip then it will have some things like that, I believe that I corrected it in the beta branch though.

---

<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:** [September 8, 2016, 11:38pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/98 "2016-09-08T23:38:16Z")

</div>

Ok, got the main feature of the beta branch pretty much working. Once I re-write some more navigation functions for 4.13 I will merge Beta into Main. It has a ton of fixes and new features.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/9/e/09e82efee471255bc0290e4c7627cd57b172f592.jpeg "UE4 VR Plugin - New Grip Feature") ](https://www.youtube.com/watch?v=9rgQ8kGNo_0)

---

<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:** [September 9, 2016, 12:07pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/100 "2016-09-09T12:07:20Z")

</div>

> [@Saiodin;592080](#):
>
> Looks pretty neat! From pausing the video I’m assuming navigation will let the character walk to your “teleport position”?

Yeah, it actually fully works but I forgot to enable it on that controller. I need to make some more changes for 4.13 for it as a bunch of functions were put into legacy and will be removed in the next version and I want it to be using the new ones.

---

<div class="post-metadata">

**Author:** ![rich0550](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rich0550](https://forums.unrealengine.com/u/rich0550)\
**Post date:** [September 12, 2016, 7:08pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/101 "2016-09-12T19:08:23Z")

</div>

does the character walk when you teleport? I mean can you see the legs of the character stepping? If I install the plugin does it come with a template? I don’t think would be up to programming it? Thanks for help!

---

<div class="post-metadata">

**Author:** ![n00854180t](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@n00854180t](https://forums.unrealengine.com/u/n00854180t)\
**Post date:** [September 12, 2016, 7:20pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/102 "2016-09-12T19:20:03Z")

</div>

- That looks awesome man, can’t wait to implement a bow onto the two hand grip. Great work 🙂

---

<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:** [September 12, 2016, 7:45pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/103 "2016-09-12T19:45:11Z")

</div>

> [@rich0550;593598](#):
>
> does the character walk when you teleport? I mean can you see the legs of the character stepping? If I install the plugin does it come with a template? I don’t think would be up to programming it? Thanks for help!

Walking would be up to an animation blueprint driven by your velocity. Sadly I doubt I would ever have a full template that you could make something out of, you could give the Steam VR Template in here a try though, it uses my plugin as one of the options.

> [@n00854180t;593604](#):
>
> - That looks awesome man, can’t wait to implement a bow onto the two hand grip. Great work 🙂

Yeah…I’m just trying to figure out a quaternion issue that I am having now to be able to call it done, quats really aren’t my strong suite.

I’m not actually sure it is solvable actually and it is a minor issue but it won’t stop bugging me. _Edit_ Actually with a bow it might be more pronounced.

---

<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:** [September 12, 2016, 9:24pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/104 "2016-09-12T21:24:09Z")

</div>

Pffft…never mind, the quat issue also appears in every other VR game with two handed grips and is actually less apparent in my system, it should be good for now. Think I am too much of a perfectionist.

_Edit_ I am going to probably merge the beta branch in as it is currently and re-open a second one later to finish 4.13 navigation migration.

Navigation works in 4.13 as is, it just uses some of the old functions.

I won’t be able to re-write the wiki pages until tomorrow, there are a ton of changes and additions.

---

<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:** [September 13, 2016, 1:49am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/105 "2016-09-13T01:49:40Z")

</div>

Beta branch is merged in, ignore the compiler warnings about navigation depreciation, I will get around to re-writing those eventually.

I need to update the documentation still (it will take a while, is a large update).

_Edit_ update also added a License.txt file so that people can set their legal fears at ease.

```auto

**09/12/2016** - Big update

Added in a VRPlayerController that if you use for your VRCharacter will enable navigation capabilities (VR Character has several new nodes for navigation now).

Fixed VRRoot and Parent Relative attachment to use unwound Yaw for the Headset (no longer spins when looking straight down).

Made parent relative attachment not rely on actually being attached to the camera and made it a child of the Root capsule in the VRcharacter.
 was done because when it was a child of the camera it was being forced into the HMD's late updates and causing anything attached to it to sway with head motions.

Prelim version of a Gripping interface was added.

Added in the complete two handed grip system with Lerp Into / Out of secondary attachment and a bunch of nodes to help support it.

(Other fixes that I forget by now, its been a while working on branch).

```

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

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