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

<div class="post-metadata">

**Author:** ![MagusShade](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MagusShade](https://forums.unrealengine.com/u/MagusShade)\
**Post date:** [August 1, 2017, 5:44pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1419 "2017-08-01T17:44:08Z")

</div>

Is there a way to make the player pawn collide with the root component of an object if they are gripping a grippableStaticMesh component of the same object?

For example - the desk in the example project by default has custom collision which has pawn set to Ignore. If I set the pawn checkbox to block, the player can no longer walk through the desk - but they still can if they are holding onto a drawer. Is there some other setting i’m missing?

---

<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:** [August 1, 2017, 7:15pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1420 "2017-08-01T19:15:23Z")

</div>

> [@MagusShade;744493](#):
>
> Is there a way to make the player pawn collide with the root component of an object if they are gripping a grippableStaticMesh component of the same object?
> 
> For example - the desk in the example project by default has custom collision which has pawn set to Ignore. If I set the pawn checkbox to block, the player can no longer walk through the desk - but they still can if they are holding onto a drawer. Is there some other setting i’m missing?

Its because of

```auto

OwningPawn->MoveIgnoreActorAdd(root->GetOwner());

```

On grip currently by default the gripped object is auto ignored for movement. is to prevent the character from colliding with objects he is holding and moving around since they aren’t attached to him (ie: the fling yourself into the air syndrome).  
It also turns off collision with just the held component but obviously if others are attached to it in the actor they could still collide with the character without that line.

I can add a toggle for it to the advanced physics settings? 99% of the time its best as is. You found one of the few times it isn’t.

_Edit_ I am loathe to reverse default behavior because of how many setups it could break and I really do think that turning capsule collision off to the actor on grip is what people would want most of the time.  
So I just added a boolean for it to the AdvancedPhysicsSettings and enabled it by default to the doors and drawers in the level.

---

<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:** [August 1, 2017, 7:41pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1421 "2017-08-01T19:41:27Z")

</div>

Pushed a new commit today, the above MoveIngore change was added in as I was pushing changes anyway

```auto

Added calling controller capability to the GetClosestSocketInRange interface functions.
Can be used in overridden versions to check the hand / other info about what/who is checking
for a socket in range. **- Will require c++ changes in anything that manually implements the interface**

Defaults to a nullptr, but a motion controller can be passed in and used on the implementation side.

Template will have it filled in.

Made bHadRelativeMovement publically readable in blueprints
While misnamed, is true if we collided with a wall/obstacle due to the HMDs movement in frame (not movement components)

Removed MotionControllerLocDelta from TickGrip
Not only can you manually calc it (and probably should) with custom grips.
But being in worldspace the offset could be wrong due to character movement.

Better to let items calc it themselves and store the variables for more advanced use instead.
I don't think it had much use in its current state.

Now I am only calling move ignore actor if the held
object is an entire actor. If the grip is on a component only it does not perform
it for the entire actor, just for the held component.

If for whatever reason someone needs an entire actor to be uncollidable with a component
grip they can do it themselves.

Added somewhat working dial component - needs full testing

```

---

<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:** [August 1, 2017, 8:53pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1422 "2017-08-01T20:53:42Z")

</div>

You know what, I had a better idea regarding that move ignore setup. I’ll be reverting the new boolean tonight and just setting it only on actor grips instead. That makes a lot more sense and should work as is.

_Edit_ Changed today’s commit as per below

```auto

Removed DoNotMoveIgnoreEntireHeldActor

I had a better solution come up. Now I am only calling move ignore actor if the held
object is an entire actor. If the grip is on a component only it does not perform
it for the entire actor, just for the held component.

If for whatever reason someone needs an entire actor to be uncollidable with a component
grip they can do it themselves.

```

---

<div class="post-metadata">

**Author:** ![Starkium](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/starkium/32/1194588_2.png) [@Starkium](https://forums.unrealengine.com/u/Starkium)\
**Post date:** [August 2, 2017, 8:08am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1423 "2017-08-02T08:08:01Z")

</div>

I did a quick search and didn’t see it mentioned anywhere, but how would one go about combining with the “weapon master VR” kit from the market place. I want all the movement from you plugin with all the gun mechanics from his. Also I heard that combining them was in the works already. Any news?

---

<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:** [August 2, 2017, 12:35pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1424 "2017-08-02T12:35:48Z")

</div>

> [@Starkium;744745](#):
>
> I did a quick search and didn’t see it mentioned anywhere, but how would one go about combining with the “weapon master VR” kit from the market place. I want all the movement from you plugin with all the gun mechanics from his. Also I heard that combining them was in the works already. Any news?

Lots of manual work, I know of “two?” people combining them already in my support discord. It doesn’t work right out of the gate because the version that they (weaponmaster devs) use for themselves using my plugin isn’t the marketplace version. Also they don’t have any multiplayer support so if you want that then it will take a decent amount of re-factoring to get working correctly.

That being said if you don’t care about physics based grips or the replication/multiplayer you can just literally use the weapon pack with the movement parts of the plugin and ignore all of the interaction stuff that the plugin provides. Its not mandatory to use the GripMotionControllers special features, or even use a hybrid where it uses their stuff for guns and the grip controllers for other things.

Honestly I really wish that some of the gun pack devs would just start making generic interfaces for their systems so that they could tie into anyone’s interaction systems. Out of the three (or four) weapon systems on the marketplace / available none of them provide generic interfaces to tie into systems people already use, instead they all rely on straight coding in the interactions themselves, I feel like is a major mistake that they are all making as if it was done correctly someone could make a pack that could tie in with any project already in the works.

---

<div class="post-metadata">

**Author:** ![MagusShade](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MagusShade](https://forums.unrealengine.com/u/MagusShade)\
**Post date:** [August 2, 2017, 4:46pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1425 "2017-08-02T16:46:13Z")

</div>

> [@;744565](#):
>
> You know what, I had a better idea regarding that move ignore setup. I’ll be reverting the new boolean tonight and just setting it only on actor grips instead. That makes a lot more sense and should work as is.
> 
> _Edit_ Changed today’s commit as per below
> 
> ```auto
> 
> Removed DoNotMoveIgnoreEntireHeldActor
> 
> I had a better solution come up. Now I am only calling move ignore actor if the held
> object is an entire actor. If the grip is on a component only it does not perform
> it for the entire actor, just for the held component.
> 
> If for whatever reason someone needs an entire actor to be uncollidable with a component
> grip they can do it themselves.
> 
> ```

You are awesome! Thanks!

---

<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:** [August 2, 2017, 5:01pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1426 "2017-08-02T17:01:39Z")

</div>

> [@Starkium;744745](#):
>
> I did a quick search and didn’t see it mentioned anywhere, but how would one go about combining with the “weapon master VR” kit from the market place. I want all the movement from you plugin with all the gun mechanics from his. Also I heard that combining them was in the works already. Any news?

I was one of two that did the conversion (I think Im the only one that completed it so far). It takes a bit of work because the toolkit has some functionality pushed through the pawn to weapon, and some from controller to weapon. When it was all said and done the toolkit ended up just being a reference point for setting up gun modularity but the interactions need to all be re-done from scratch, new inputs, and you gotta add that new collision channel. The way interaction is done is just so different, but it ended up much cleaner after the conversion. I also went with trace shooting instead of actual projectiles because I want it multiplayer.

---

<div class="post-metadata">

**Author:** ![Starkium](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/starkium/32/1194588_2.png) [@Starkium](https://forums.unrealengine.com/u/Starkium)\
**Post date:** [August 2, 2017, 5:49pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1427 "2017-08-02T17:49:08Z")

</div>

> [@FatMoth;744964](#):
>
> I was one of two that did the conversion (I think Im the only one that completed it so far). It takes a bit of work because the toolkit has some functionality pushed through the pawn to weapon, and some from controller to weapon. When it was all said and done the toolkit ended up just being a reference point for setting up gun modularity but the interactions need to all be re-done from scratch, new inputs, and you gotta add that new collision channel. The way interaction is done is just so different, but it ended up much cleaner after the conversion. I also went with trace shooting instead of actual projectiles because I want it multiplayer.

what I’m working with right now is sort of like nazi zombies meets left for dead and dead rising. So i do need multiplayer and replication, i need the guns to work, and I want the locomotion from the plugin. Trace shooting seems fine for me too.

So how would you recommend I do ? I’d be willing to throw some money down on getting a bare bones copy of what you have.

---

<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:** [August 2, 2017, 9:04pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1428 "2017-08-02T21:04:18Z")

</div>

> [@Starkium;744985](#):
>
> what I’m working with right now is sort of like nazi zombies meets left for dead and dead rising. So i do need multiplayer and replication, i need the guns to work, and I want the locomotion from the plugin. Trace shooting seems fine for me too.
> 
> So how would you recommend I do ? I’d be willing to throw some money down on getting a bare bones copy of what you have.

Just rebuild the guns using the example gun in the plugin, and write the logic from the toolkit in there. Just need to do it once because all other guns are just child actors you can change settings on like in the toolkit.

---

<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:** [August 2, 2017, 11:56pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1429 "2017-08-02T23:56:28Z")

</div>

Pushed a new commit to the plugin repository tonight.

Thanks to SlimeQ for being annoyed enough to report it and make me look into it, sometimes that is just the motivation I need.

```auto

New UpdateOverlaps override, should correct multiple issues / problems with how
overlaps have been working with the VRCharacter Capsule.

Some things like overlap spam on character capsule and overlap offset have been around for a long time but were mostly forgotten about.

Thanks to SlimeQ for bringing them up again so I remembered to look into it.

```

---

<div class="post-metadata">

**Author:** ![Curs0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/curs0/32/470295_2.png) [@Curs0](https://forums.unrealengine.com/u/Curs0)\
**Post date:** [August 3, 2017, 12:37pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1430 "2017-08-03T12:37:38Z")

</div>

> [@;740989](#):
>
> I’ll add a “GripControllerIsTracked()” blueprint function in to access the overwrite variable I am using instead as I also cannot override the original UFunction::IsTracked().

works like a charms, ty so much!

just another little minor unuseful issue :D: any way to get rid of these warnings?

UnrealBuildTool: Warning: Plugin ‘OpenVRExpansionPlugin’ does not list plugin ‘SteamVR’ as a dependency, but module ‘OpenVRExpansionPlugin’ depends on ‘SteamVRController’.  
(same problem for advanced session)

I think plugins are supposed to add explicit dependencies in 4.17…

---

<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:** [August 3, 2017, 1:10pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1431 "2017-08-03T13:10:48Z")

</div>

> [@Curs0;745302](#):
>
> works like a charms, ty so much!
> 
> just another little minor unuseful issue :D: any way to get rid of these warnings?
> 
> UnrealBuildTool: Warning: Plugin ‘OpenVRExpansionPlugin’ does not list plugin ‘SteamVR’ as a dependency, but module ‘OpenVRExpansionPlugin’ depends on ‘SteamVRController’.  
> (same problem for advanced session)
> 
> I think plugins are supposed to add explicit dependencies in 4.17…

Are you trying to use the 4.16 branch in 4.17?

Because I did that day 1 in the 4.17 migration.

```auto

	"Plugins": 
		{
			"Name": "VRExpansionPlugin",
			"Enabled": true
		},
		{
			"Name": "SteamVR",
			"Enabled": true
		},
		{
			"Name": "ProceduralMeshComponent",
			"Enabled": true
		}
	]

```

If you are using 4.16 for 4.17 I don’t think the project should even compile though, I had to change multiple things.

---

<div class="post-metadata">

**Author:** ![Starkium](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/starkium/32/1194588_2.png) [@Starkium](https://forums.unrealengine.com/u/Starkium)\
**Post date:** [August 4, 2017, 1:19am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1432 "2017-08-04T01:19:07Z")

</div>

> [@FatMoth;745076](#):
>
> Just rebuild the guns using the example gun in the plugin, and write the logic from the toolkit in there. Just need to do it once because all other guns are just child actors you can change settings on like in the toolkit.

Oh yeah i forgot there’s an example gun in there. Thanks man, that actually shouldn’t take long at all…

---

<div class="post-metadata">

**Author:** ![Starkium](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/starkium/32/1194588_2.png) [@Starkium](https://forums.unrealengine.com/u/Starkium)\
**Post date:** [August 4, 2017, 5:22am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1433 "2017-08-04T05:22:16Z")

</div>

wouldn’t it just be easier to modify the vr pawn to be able to pick up the already made guns?

---

<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:** [August 4, 2017, 6:01am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1434 "2017-08-04T06:01:11Z")

</div>

- might be due to having an old version or something, but when I play in VR, I get what I think are supposed to be the basestation bounds and something to do with the controllers, but they only appear in one eye or in different places for each eye (black box and squished black sphere). Sorry for the rubbish screenshot:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/d/d0d76d3a3a5cfe4b03a14e8e09e1dc37f148dc43.jpeg)  
I meant to mention it earlier but have been doing testing mostly on monitor.

---

<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:** [August 4, 2017, 12:08pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1435 "2017-08-04T12:08:38Z")

</div>

> [@n00854180t;745660](#):
>
> - might be due to having an old version or something, but when I play in VR, I get what I think are supposed to be the basestation bounds and something to do with the controllers, but they only appear in one eye or in different places for each eye (black box and squished black sphere). Sorry for the rubbish screenshot:
> 
> I meant to mention it earlier but have been doing testing mostly on monitor.

Yeaaaaa…

Welcome to the broken DebugDraw issue, I reported it back in 4.16 preview but it still exists in 4.17 p3.

You have to hide anything that is rendering as a debug draw (generally you only have debug draw visible for debugging anyway). You are seeing the gun example box and the controllers overlap spheres duplicated.

I had it accepted as a bug way back in preview 2 of 4.16 but it continues to be unresolved, its pretty strange that they are taking long / putting low of priority on it considering that in VR editor it could be a problem and 4.13 had the same issue in a preview release and it was fixed before final release.

> **[Broken VR Debug Draw in 4.16 Preview 1 & 2](https://forums.unrealengine.com/questions/596005/broken-vr-debug-draw-in-416-preview-1-2.html)**
>
> Debug draw is broken in 4.16 Preview 1 & 2, any debug draw object (BoxCollision, SphereCollision) set to render will draw a second warped black lined outline only in the right eye in VR. Reproduction steps: Place a collision component in the...

---

<div class="post-metadata">

**Author:** ![Starkium](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/starkium/32/1194588_2.png) [@Starkium](https://forums.unrealengine.com/u/Starkium)\
**Post date:** [August 4, 2017, 4:19pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1436 "2017-08-04T16:19:54Z")

</div>

i noticed too when I allowed my collision spheres to be visible for testing.

---

<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:** [August 4, 2017, 5:19pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1437 "2017-08-04T17:19:21Z")

</div>

I’ll just disable them, thanks, sucks it’s not fixed!

Other than that your advice about Secondary OnUse worked great, thanks man, VR backpack is working awesome (think Ultima Online but a 3D backpack instead).

---

<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:** [August 4, 2017, 5:25pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1438 "2017-08-04T17:25:41Z")

</div>

> [@n00854180t;745869](#):
>
> I’ll just disable them, thanks, sucks it’s not fixed!
> 
> Other than that your advice about Secondary OnUse worked great, thanks man, VR backpack is working awesome (think Ultima Online but a 3D backpack instead).

Its funny how much overlap there is with the plugin, two others are working on inventory / backpacks in the discord currently as well. Pretty cool to see the different approaches though.

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

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