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

<div class="post-metadata">

**Author:** ![KelbornKad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KelbornKad](https://forums.unrealengine.com/u/KelbornKad)\
**Post date:** [October 18, 2017, 11:10am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1661 "2017-10-18T11:10:51Z")

</div>

Hi, !

Firstly, you’ve made realy great work! I’ve downloaded the plugin for physical grip, but found many interesting things in it.  
Unfortunately, I occured a bug that crashes the editor (2017-10-10 commit). I’m not sure about what causes the crash, but it always crashes when I use OnChildGripRelease on specific blueprint. Also I’ve detached my bp code from release event to be on the safe side, but it didn’t help.  
Output: [SPOILER]

```auto

Assertion failed: NewMass > 0.f [File:D:\Build\++UE4+Release-4.17+Compile\Sync\Engine\Source\Runtime\Engine\Private\PhysicsEngine\BodyInstance.cpp] [Line: 3685]

KERNELBASE
UE4Editor_Core
UE4Editor_Core
UE4Editor_Core
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_VRExpansionPlugin!UGripMotionControllerComponent::DestroyPhysicsHandle() [_\vrexpansionplugin\vrexpansionplugin\source\vrexpansionplugin\private\gripmotioncontrollercomponent.cpp:2982]
UE4Editor_VRExpansionPlugin!UGripMotionControllerComponent::Drop_Implementation() [_\vrexpansionplugin\vrexpansionplugin\source\vrexpansionplugin\private\gripmotioncontrollercomponent.cpp:1443]
UE4Editor_VRExpansionPlugin!UGripMotionControllerComponent::NotifyDrop_Implementation() [_\vrexpansionplugin\vrexpansionplugin\source\vrexpansionplugin\private\gripmotioncontrollercomponent.cpp:1434]
UE4Editor_VRExpansionPlugin!UGripMotionControllerComponent::execNotifyDrop() [_\vrexpansionplugin\vrexpansionplugin\source\vrexpansionplugin\public\gripmotioncontrollercomponent.h:86]
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_VRExpansionPlugin!UGripMotionControllerComponent::NotifyDrop()
UE4Editor_VRExpansionPlugin!UGripMotionControllerComponent::DropGrip() [_\vrexpansionplugin\vrexpansionplugin\source\vrexpansionplugin\private\gripmotioncontrollercomponent.cpp:1268]
UE4Editor_VRExpansionPlugin!UGripMotionControllerComponent::DropComponent() [_\vrexpansionplugin\vrexpansionplugin\source\vrexpansionplugin\private\gripmotioncontrollercomponent.cpp:1187]
UE4Editor_VRExpansionPlugin!UGripMotionControllerComponent::DropObjectByInterface() [_\vrexpansionplugin\vrexpansionplugin\source\vrexpansionplugin\private\gripmotioncontrollercomponent.cpp:782]
UE4Editor_VRExpansionPlugin!UGripMotionControllerComponent::execDropObjectByInterface() [_\vrexpansionplugin\vrexpansionplugin\source\vrexpansionplugin\public\gripmotioncontrollercomponent.h:86] //<-gripmotioncontroller destructor
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Core
UE4Editor_Core
UE4Editor_Core
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor
UE4Editor
UE4Editor
UE4Editor
UE4Editor
kernel32
ntdll

```

[/SPOILER]

Blueprint VRGripInterface is: [SPOILER] ![Drawer.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/d/79d70a4dea458a4bd38647127748817179637763.png) [/SPOILER]

---

<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:** [October 18, 2017, 12:30pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1662 "2017-10-18T12:30:01Z")

</div>

> [@SycoZ](#):
>
> Hi!
> 
> I got the plugin working on my blueprint project. I’m however having problems with the template. Seems that Unreal doesn’t find the Advanced Sessions plugin and thus I get all kind of errors.
> 
> Steps I took:
> 
> 1. Download the 4.17.2 plugin versions of both Advanced Sessions and VRExpansion plugins and add them to the Plugins folder (I first tried without replacing the ones already there)
> 2. Delete intermediate folder
> 3. Change engine version and / or generate visual studio files
> 4. Open and build solution in visual studio
> 5. Run UE project
> 
> Any ideas?
> 
> Thanks!

Since you are adding them to your own project you may need to enable the Advanced sessions plugin in the plugins list.

Also if you aren’t planning on using advanced sessions you can delete the server info and 3D Menu blueprints and just not have the plugin at all, it is only used to handle that server browser widget in the template level.

---

<div class="post-metadata">

**Author:** ![kusogaki77](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kusogaki77](https://forums.unrealengine.com/u/kusogaki77)\
**Post date:** [October 18, 2017, 1:13pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1663 "2017-10-18T13:13:37Z")

</div>

Anything I need to set for the HMD to get tracked after building the plugin for a blank or Epic VR project?

As mentioned previously () I tried to create a non-template VR character, and I got problem where the HMD and MCs aren’t getting tracked.

(Used the zip file in the ss below;cl [c8cdf1e](https://bitbucket.org//vrexpansionplugin/commits/c8cdf1e95697))

I verified the HMD is getting tracked with a template project, but fsr it isn’t getting tracked in a non-template one. The VRchar is immobile. I can see my hands right out in front of me, but I’m stuck at the position of the Player Start.

I tried to debug it, and it looks like the HMD isn’t getting recognized as being on in the Player controller.

---

<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:** [October 18, 2017, 1:18pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1664 "2017-10-18T13:18:58Z")

</div>

> [@kusogaki77](#):
>
> Anything I need to set for the HMD to get tracked after building the plugin for a blank or Epic VR project?
> 
> As mentioned previously () I tried to create a non-template VR character, and I got problem where the HMD and MCs aren’t getting tracked.
> 
> (Used the zip file in the ss below;cl [c8cdf1e](https://bitbucket.org//vrexpansionplugin/commits/c8cdf1e95697))
> 
> I verified the HMD is getting tracked with a template project, but fsr it isn’t getting tracked in a non-template one. The VRchar is immobile. I can see my hands right out in front of me, but I’m stuck at the position of the Player Start.
> 
> I tried to debug it, and it looks like the HMD isn’t getting recognized as being on in the Player controller.

Shouldn’t need to do anything, the camera locks to HMD by default. Unless you turned off the VR plugin or are trying to run two editor instances at once it should work when stereo is enabled/turned on (you may have forgotten step?).

---

<div class="post-metadata">

**Author:** ![Sleeper\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sleeper\_1](https://forums.unrealengine.com/u/Sleeper_1)\
**Post date:** [October 18, 2017, 4:07pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1665 "2017-10-18T16:07:41Z")

</div>

What is the difference between the regular Vive character and the Simple Vive character? Which one should I use?

---

<div class="post-metadata">

**Author:** ![OneOfHaze](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OneOfHaze](https://forums.unrealengine.com/u/OneOfHaze)\
**Post date:** [October 18, 2017, 4:12pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1666 "2017-10-18T16:12:21Z")

</div>

I wasn’t adding the Advanced Session plugin to my own project. That project I got working well with only the VRExpansion. It was just the template project that was problematic. Good to know about the server info and 3D Menu, thanks!

New, unrelated question:  
I now have LAN multiplayer working in my own blueprint project and I’m using the VR Simple Character as the basis for my pawn. The head and hands replicate smoothly on both server and client. However, when the client side tries to move his head, the world starts moving very glitchily/ weirdly for him. happens on only moving and NOT when rotating the head (rotating the head and motion controllers are smooth). It kind of feels like the server is feeding back and setting the HMD’s location to the client. Why could be?

---

<div class="post-metadata">

**Author:** ![VrPrimeDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VrPrimeDev](https://forums.unrealengine.com/u/VrPrimeDev)\
**Post date:** [October 18, 2017, 4:59pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1667 "2017-10-18T16:59:31Z")

</div>

Hi,

I’m trying to make small mini game where you throw a ball between players, I made a grippable static mesh with the default grip interface settings, but when I throw the ball, there’s a frame where the ball continues to be attached to my hand before it receives the update from the server that sets it to the correct position. I’m using the template character.

What is the best way to have remove “jitter”/desynced frame before the server updates?

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:** [October 18, 2017, 5:56pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1668 "2017-10-18T17:56:11Z")

</div>

> [@Link\_AJ](#):
>
> What is the difference between the regular Vive character and the Simple Vive character? Which one should I use?

Regular vr character is more involved and custom, the simple one is an easier / safer fallback in case something terribly breaks about how I do the main character at some point.

I tend to promote the main character now that it has been fine tuned, and most of my testing is through it so sometimes SimpleCharacter bugs last a little longer than on the main character.

> [@SycoZ](#):
>
> New, unrelated question:  
> I now have LAN multiplayer working in my own blueprint project and I’m using the VR Simple Character as the basis for my pawn. The head and hands replicate smoothly on both server and client. However, when the client side tries to move his head, the world starts moving very glitchily/ weirdly for him. happens on only moving and NOT when rotating the head (rotating the head and motion controllers are smooth). It kind of feels like the server is feeding back and setting the HMD’s location to the client. Why could be?

I’ll need to test again, the simple character isn’t really intended for multiplayer like the main character is and it may have fallen back on somewhere during my networking performance overhauls.

I probably missed a variable when changing everything recently, i’ll look into it.

---

<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:** [October 18, 2017, 6:01pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1669 "2017-10-18T18:01:53Z")

</div>

> [@Esteves](#):
>
> Hi,
> 
> I’m trying to make small mini game where you throw a ball between players, I made a grippable static mesh with the default grip interface settings, but when I throw the ball, there’s a frame where the ball continues to be attached to my hand before it receives the update from the server that sets it to the correct position. I’m using the template character.
> 
> What is the best way to have remove “jitter”/desynced frame before the server updates?
> 
> Thank you

You can run the grip on the ball with a full client side authority grip (doesn’t wait on server verification) will grip and release immediately. If the ball replicates its position though you can still get a correction from the server side when it starts replicting position after it gets the drop notice…

IE: Client releases, sees it fly away, server gets notified PINGTIME later, server drops with velocity and starts replicating position, client gets updated to the location PINGTIME x 2 ago.

The solution to that is full physics prediction and replication…which is not an easy task.

You could also fake it and have a non position replicating ball which can get out of sync depending on the physics sim, you can trend it over time to the servers position to account for that or just completely ignore the fact that it might not be at the same location.

Or server side movement which requires some custom logic to get working correctly since the default engine replication only functions when given a physics velocity for prediction.

_Edit_ Easiest method might be to hide it until the server updates so you don’t get the warp after it is thrown.

---

<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:** [October 18, 2017, 6:55pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1670 "2017-10-18T18:55:43Z")

</div>

> [@SycoZ](#):
>
> New, unrelated question:  
> I now have LAN multiplayer working in my own blueprint project and I’m using the VR Simple Character as the basis for my pawn. The head and hands replicate smoothly on both server and client. However, when the client side tries to move his head, the world starts moving very glitchily/ weirdly for him. happens on only moving and NOT when rotating the head (rotating the head and motion controllers are smooth). It kind of feels like the server is feeding back and setting the HMD’s location to the client. Why could be?

Fixed…I had a Z in the place of an X…go figure.

I’ll add simple character to my unit tests for multiplayer in the future.

---

<div class="post-metadata">

**Author:** ![OneOfHaze](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OneOfHaze](https://forums.unrealengine.com/u/OneOfHaze)\
**Post date:** [October 18, 2017, 7:20pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1671 "2017-10-18T19:20:05Z")

</div>

> [@](#):
>
> Regular vr character is more involved and custom, the simple one is an easier / safer fallback in case something terribly breaks about how I do the main character at some point.
> 
> I tend to promote the main character now that it has been fine tuned, and most of my testing is through it so sometimes SimpleCharacter bugs last a little longer than on the main character.
> 
> I’ll need to test again, the simple character isn’t really intended for multiplayer like the main character is and it may have fallen back on somewhere during my networking performance overhauls.
> 
> I probably missed a variable when changing everything recently, i’ll look into it.

Thanks for the quick reply! I’ll change it to the main character in that case.

---

<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:** [October 18, 2017, 7:30pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1672 "2017-10-18T19:30:42Z")

</div>

> [@SycoZ](#):
>
> Thanks for the quick reply! I’ll change it to the main character in that case.

Don’t miss that it is fixed already though :p. The simple character just lacks a few features that the advanced one provides, but is easier to understand for the user and upkeep for me ( is the second bug reported on it since it was made even though I have overhauled the main character multiple times and changed the base character backend a ton).

I probably mis-stated there, it is multiplayer capable, but I run most of my iteration on the main character, since the simple char is so stable it gets less testing.

Also as you saw, walking around when the server is correcting your position can roll back your actual location, which is why I feel the advanced character is better suited to multiplayer.

With the advanced character you won’t get positional rollbacks from walking, only locomotion or collision with things, so in high packet loss situations it won’t induce as much nausea.

---

<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:** [October 19, 2017, 12:57am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1673 "2017-10-19T00:57:00Z")

</div>

> [@](#):
>
> Unless you turned off the VR plugin or are trying to run two editor instances at once it should work when stereo is enabled/turned on (you may have forgotten step?).

That was the step. Never knew such a setting (Instanced Stereo, in Project Settings) existed. Thanks a lot!

Edit: Scratch that. Didn’t work. After enabling Instanced Stereo and restarting, seems SteamVR’s saying UE4Editor isn’t responding. Restarted again, making sure no other instances were running. That previous error went away, but the Camera/HMD is still stuck at the bottom of the capsule.

The ss shows what it looks like when the controllers are off. Turning 'em on, they disappear - probably are moving to their proper position relative to the capsule. (I’m working in a really confined space where the ground is out of sight of the sensors, so I can’t verify if they’re getting tracked).

I’ve verified the proper character is spawning at least.

---

<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:** [October 19, 2017, 1:39am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1674 "2017-10-19T01:39:19Z")

</div>

> [@](#):
>
> That was the step. Never knew such a setting (Instanced Stereo, in Project Settings) existed. Thanks a lot!
> 
> Edit: Scratch that. Didn’t work. After enabling Instanced Stereo and restarting, seems SteamVR’s saying UE4Editor isn’t responding. Restarted again, making sure no other instances were running. That previous error went away, but the Camera/HMD is still stuck at the bottom of the capsule.
> 
> The ss shows what it looks like when the controllers are off. Turning 'em on, they disappear - probably are moving to their proper position relative to the capsule. (I’m working in a really confined space where the ground is out of sight of the sensors, so I can’t verify if they’re getting tracked).
> 
> I’ve verified the proper character is spawning at least.

Meant the EnableHMD or stereo on console command.

---

<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:** [October 19, 2017, 4:04am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1675 "2017-10-19T04:04:55Z")

</div>

> [@](#):
>
> Meant the EnableHMD or stereo on console command.

Thanks a lot for the reply. I don’t recall seeing a step-by-step for the bare minimum requirements of getting a VRcharacter class up and running (I mean, just have it take control of the HMD and MCs).

Downloaded the default template [34f41b9](https://bitbucket.org//vrexppluginexample/commits/34f41b921782)built it and tried to run it, but even then I’m getting the 2d character by default (can move around WASD style and jump, but that’s it). I’m running 4.17.2 and I haven’t updated SteamVR in a little over a month. Could that be a problem?

Btw, I tried sticking that “EnableHMD” console command on begin play in the level blueprint of the template, but the HMD still isn’t getting recognized.  
I’ll see if I there’s a SteamVR update.

---

<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:** [October 19, 2017, 12:26pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1676 "2017-10-19T12:26:45Z")

</div>

> [@](#):
>
> Thanks a lot for the reply. I don’t recall seeing a step-by-step for the bare minimum requirements of getting a VRcharacter class up and running (I mean, just have it take control of the HMD and MCs).
> 
> Downloaded the default template [34f41b9](https://bitbucket.org//vrexppluginexample/commits/34f41b921782)built it and tried to run it, but even then I’m getting the 2d character by default (can move around WASD style and jump, but that’s it). I’m running 4.17.2 and I haven’t updated SteamVR in a little over a month. Could that be a problem?
> 
> Btw, I tried sticking that “EnableHMD” console command on begin play in the level blueprint of the template, but the HMD still isn’t getting recognized.  
> I’ll see if I there’s a SteamVR update.

If you are running VRPreview its automatically called anyway in editor. But if you are running VR preview the HMD is already detected regardless.

I don’t know what you are having as an issue here, but it is unrelated to the plugin, I don’t control or handle the VR engine plugins.

---

<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:** [October 19, 2017, 4:53pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1677 "2017-10-19T16:53:19Z")

</div>

Posting excerpts from a conversation I was having in the patreon discord for general public knowledge. Goes over some of the 4.18 secondary grip additions that I added. I will go over things in more detail in a video and patch notes later, but figured since I already wrote , might as well copy and paste it here.

> [@](#):
>
> the new 4.18 second hand smoothing and distance based influence might be good for gun interactions  
> its not proximity  
> though proximity would be easier to handle manually now
> 
> I added “SecondaryGripDistance” which is the distance of the secondary grip from its initial grip point IF it wasn’t rotating to meet it
> 
> I use that for the distance based influence but it was primarily intended to make proximity ungrip easy to achieve
> 
> say your main hand is pointing the gun forward with the distance influence the farther the second hand is from where it should be on the gun, the less the gun rotates towards it with a deadzone for full control so you have to actually rotate the rear hand for full control and line the gun up more
> 
> but the same logic applies to ungripping with proximity, if the secondary is too far from where it should be, drop the secondary grip
> 
> deadzone is distance within which there is full control, then there is a falloff scaler where after the deadzone it lerps from full control to 0 control with the secondary hand
> 
> arcadey games can keep the always locked secondary which is more fun for quick shooting gameplay, more realistic ones can apply distance influence and proximity grips to enforce lining up shots properly is the idea.
> 
> Then the secondary smoothing change is that before I used to just run smoothing across the last frame to one, so only very minor smoothing, it was a lackluster approach that no-one used.
> 
> However, since I added the VREditor 1 Euro Low Pass implementation in for the laser beam recently, I repurposed that algorithm with different low pass settings and am now using it to drive the secondary hand smoothing giving a much better result than normal running averages or lerping.

_Edit_ and to be clear, yes the distance based influence is based on the original concept that Node talked about, it is a good idea and was easy enough to support so I added it in.

---

<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:** [October 20, 2017, 3:05am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1678 "2017-10-20T03:05:44Z")

</div>

> [@](#):
>
> If you are running VRPreview its automatically called anyway in editor. But if you are running VR preview the HMD is already detected regardless.
> 
> I don’t know what you are having as an issue here, but it is unrelated to the plugin, I don’t control or handle the VR engine plugins.

Dang it, sorry. I failed to enable VR Preview…

Maybe the newest version of the plugin example template doesn’t have it enabled by default? I’m not saying it should, but I’m pretty sure older versions of the template (up to a month ago) had VR Preview set as default, because I’ve never had to enable it.

Thanks for the additional info about VR preview and HMD detection.

---

<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:** [October 20, 2017, 3:51am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1679 "2017-10-20T03:51:44Z")

</div>

> [@](#):
>
> Dang it, sorry. I failed to enable VR Preview…
> 
> Maybe the newest version of the plugin example template doesn’t have it enabled by default? I’m not saying it should, but I’m pretty sure older versions of the template (up to a month ago) had VR Preview set as default, because I’ve never had to enable it.
> 
> Thanks for the additional info about VR preview and HMD detection.

I don’t control vr preview either 😛

That is an editor feature that is automatically enabled when it detects an HMD, but it normally shows your last used mode, so it likely showed VR preview for you before because that is all you ever launched it with.

---

<div class="post-metadata">

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

</div>

Maybe someone has any ideas?

> [@KelbornKad](#):
>
> Hi, !
> 
> Firstly, you’ve made realy great work! I’ve downloaded the plugin for physical grip, but found many interesting things in it.  
> Unfortunately, I occured a bug that crashes the editor (2017-10-10 commit). I’m not sure about what causes the crash, but it always crashes when I use OnChildGripRelease on specific blueprint. Also I’ve detached my bp code from release event to be on the safe side, but it didn’t help.  
> Output: [SPOILER]
> 
> ```auto
> 
> Assertion failed: NewMass > 0.f [File:D:\Build\++UE4+Release-4.17+Compile\Sync\Engine\Source\Runtime\Engine\Private\PhysicsEngine\BodyInstance.cpp] [Line: 3685]
> 
> KERNELBASE
> UE4Editor_Core
> UE4Editor_Core
> UE4Editor_Core
> UE4Editor_Engine
> UE4Editor_Engine
> UE4Editor_Engine
> UE4Editor_Engine
> UE4Editor_Engine
> UE4Editor_VRExpansionPlugin!UGripMotionControllerComponent::DestroyPhysicsHandle() [_\vrexpansionplugin\vrexpansionplugin\source\vrexpansionplugin\private\gripmotioncontrollercomponent.cpp:2982]
> UE4Editor_VRExpansionPlugin!UGripMotionControllerComponent::Drop_Implementation() [_\vrexpansionplugin\vrexpansionplugin\source\vrexpansionplugin\private\gripmotioncontrollercomponent.cpp:1443]
> UE4Editor_VRExpansionPlugin!UGripMotionControllerComponent::NotifyDrop_Implementation() [_\vrexpansionplugin\vrexpansionplugin\source\vrexpansionplugin\private\gripmotioncontrollercomponent.cpp:1434]
> UE4Editor_VRExpansionPlugin!UGripMotionControllerComponent::execNotifyDrop() [_\vrexpansionplugin\vrexpansionplugin\source\vrexpansionplugin\public\gripmotioncontrollercomponent.h:86]
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_VRExpansionPlugin!UGripMotionControllerComponent::NotifyDrop()
> UE4Editor_VRExpansionPlugin!UGripMotionControllerComponent::DropGrip() [_\vrexpansionplugin\vrexpansionplugin\source\vrexpansionplugin\private\gripmotioncontrollercomponent.cpp:1268]
> UE4Editor_VRExpansionPlugin!UGripMotionControllerComponent::DropComponent() [_\vrexpansionplugin\vrexpansionplugin\source\vrexpansionplugin\private\gripmotioncontrollercomponent.cpp:1187]
> UE4Editor_VRExpansionPlugin!UGripMotionControllerComponent::DropObjectByInterface() [_\vrexpansionplugin\vrexpansionplugin\source\vrexpansionplugin\private\gripmotioncontrollercomponent.cpp:782]
> UE4Editor_VRExpansionPlugin!UGripMotionControllerComponent::execDropObjectByInterface() [_\vrexpansionplugin\vrexpansionplugin\source\vrexpansionplugin\public\gripmotioncontrollercomponent.h:86] //<-gripmotioncontroller destructor
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_CoreUObject
> UE4Editor_Engine
> UE4Editor_Engine
> UE4Editor_Engine
> UE4Editor_Engine
> UE4Editor_Engine
> UE4Editor_Engine
> UE4Editor_Engine
> UE4Editor_Engine
> UE4Editor_Engine
> UE4Editor_Engine
> UE4Editor_Engine
> UE4Editor_Core
> UE4Editor_Core
> UE4Editor_Core
> UE4Editor_Engine
> UE4Editor_Engine
> UE4Editor_Engine
> UE4Editor_Engine
> UE4Editor_UnrealEd
> UE4Editor_UnrealEd
> UE4Editor
> UE4Editor
> UE4Editor
> UE4Editor
> UE4Editor
> kernel32
> ntdll
> 
> ```
> 
> [/SPOILER]
> 
> Blueprint VRGripInterface is: ![Drawer.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/d/79d70a4dea458a4bd38647127748817179637763.png)

Upd: Ok, I solved the problem. Collision complexity was set to “Use complex as simple” in my mesh. Everything works fine after setting “Project default”. But still it looks like a bug.

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

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