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

<div class="post-metadata">

**Author:** ![solodev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/solodev/32/622891_2.png) [@solodev](https://forums.unrealengine.com/u/solodev)\
**Post date:** [January 12, 2017, 10:28am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/514 "2017-01-12T10:28:08Z")

</div>

> [@;649484](#):
>
> Oh…Well it should work the same for that, but the Proteus template is so far behind on plugin updates that not much else is going to be the same for you.
> 
> It has to be compiled for your engine version after setting up the folder correctly. is the unfortunate downside to supporting multiple engine versions and being unable to fully host all of the binaries on my subversion system.
> 
> Launching the editor won’t compile a plugin, you’ll need to load up the .sln file that was generated with the empty c++ class and hit build at the top.
> 
> [Compiling Game Projects in Unreal Engine Using C++ | Unreal Engine 5.3 Documentation](https://docs.unrealengine.com/latest/INT/Programming/Development/CompilingProjects/)

One last thing, at least for now 😉

Is it possible to dynamically change EGripCollisonType on the GripActor function ? I assume I’d need to modify the function in VS in order to do that ?

![gripactor.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/6/3f677d2f5c714823ca0af1a707f47b7edb875032.png)

---

<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:** [January 12, 2017, 1:20pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/515 "2017-01-12T13:20:57Z")

</div>

> [@Shin\_ji;649922](#):
>
> One last thing, at least for now 😉
> 
> Is it possible to dynamically change EGripCollisonType on the GripActor function ? I assume I’d need to modify the function in VS in order to do that ?

If you mean pass in a new one yes just make a variable out of a BPGripCollisionType struct and pass it in with whatever you want. The newer version of the plugin uses an interface for per object grip type settings, using the older version with proteus’s template you could store the grip type on each object and pass that in if you desired.

However, if you mean change the grip after the object has already been gripped without “dropping” it first, its a quality of life change on my back burner right now, due to specific grips requiring specific object setups to work correctly and most of that setup being done at the time of initial grip it complicates things.

I will have to add a new replicated function in to inform remote clients about the change and set appropriate variables.

---

<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:** [January 12, 2017, 2:44pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/516 "2017-01-12T14:44:17Z")

</div>

Pushed a new commit live

_Updated template to latest plugin version_

Plugin Changes

```auto

**01/12/2017**
Fixed an issue where damping/stiffness were not replicating for manipulation grips.

Set stiffness/damping to always replicate so that they can be used as additional inputs for custom usage.

Now detecting if a grips CollisionType or Replication state has been changed on array replication and re-gripping on client side
(fixes instant drop/grip situations not being registered client side, also allows for the following).

Added SetGripCollisionType node to blueprints to dynamically change which collision type a grip is using.
(Should be called server side in network environments).

```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3e3204e4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3e3204e4](https://forums.unrealengine.com/u/anonymous_user_3e3204e4)\
**Post date:** [January 14, 2017, 11:02am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/517 "2017-01-14T11:02:23Z")

</div>

Hello! Thank you very much for your project! I use your projects, see a 3DUMG function, I added OpenLevel to the 3DMenu, But can’t trigger events, I tried to add Widgetinteraction\>PressPinterKey node,but do not know to add in that place, please help me! Thanks again！ Forgive my English is not good!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3e3204e4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3e3204e4](https://forums.unrealengine.com/u/anonymous_user_3e3204e4)\
**Post date:** [January 14, 2017, 11:12am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/518 "2017-01-14T11:12:46Z")

</div>

Hello! Thank you very much for your project! I use your projects, see a 3DUMG function, I added OpenLevel to the 3DMenu, But can’t trigger events, I tried to add Widgetinteraction\>PressPinterKey node,but do not know to add in that place, please help me! Thanks again！ Forgive my English is not good!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3e3204e4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3e3204e4](https://forums.unrealengine.com/u/anonymous_user_3e3204e4)\
**Post date:** [January 14, 2017, 11:23am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/519 "2017-01-14T11:23:27Z")

</div>

Hello! Thank you very much for your project! I use your projects, see a 3DUMG function, I added OpenLevel to the 3DMenu, But can’t trigger events, I tried to add Widgetinteraction\>PressPinterKey node,but do not know to add in that place, please help me! Thanks again！ Forgive my English is not good!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_601851e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_601851e1](https://forums.unrealengine.com/u/anonymous_user_601851e1)\
**Post date:** [January 15, 2017, 9:05am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/520 "2017-01-15T09:05:01Z")

</div>

> [@;648933](#):
>
> Well that would trigger “OnDrop” on the held actor if it uses the interface. What are you looking for? An “OnAutoDrop” event on the controller itself that passes the object to drop back in? At that point it would probably be better to turn auto drop off and run your own checks, auto drop is just there for convenience.
> 
> By the way, for swords I wouldn’t suggest using a physics grip, there isn’t really a way around there being a slight offset due to the controller and the object being on different threads and if you run swords as a non interactive grip then they will feel attached to the hand instead of floaty.

More progress 😃

Very helpful with the sword tip! Thanks!

Interestingly enough tho when we teleport our playercharacter (teleporting the swords too) it loses it’s on drop-\>attach to hip function as well.

---

<div class="post-metadata">

**Author:** ![mahlukat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mahlukat](https://forums.unrealengine.com/u/mahlukat)\
**Post date:** [January 15, 2017, 8:22pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/521 "2017-01-15T20:22:50Z")

</div>

sorry if its noob question but I really couldnt find even I spent hours, from where can I change the htc vive controller mesh? I really feel myself stupid because whereever I check, they are alrady set as mannequin mesh. In Vive\_PawnCharacter Blueprint there is handMesh component, and both handMesh components alraeady set to mannequin hands. In my world settings, I am using SteamVR\_GM on gameMode override, and SteamVR\_Player\_Controller as PlayerControllerClass. Everywhere the controllers are set to mannequin mesh but on the screen always htc vive’s default black controllers… I will be very happy if anyone help me… Or it means I can’t change them, I should write my own Blueprint from zero?

---

<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:** [January 15, 2017, 10:07pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/522 "2017-01-15T22:07:21Z")

</div>

> [@mahlukat;651551](#):
>
> sorry if its noob question but I really couldnt find even I spent hours, from where can I change the htc vive controller mesh? I really feel myself stupid because whereever I check, they are alrady set as mannequin mesh. In Vive\_PawnCharacter Blueprint there is handMesh component, and both handMesh components alraeady set to mannequin hands. In my world settings, I am using SteamVR\_GM on gameMode override, and SteamVR\_Player\_Controller as PlayerControllerClass. Everywhere the controllers are set to mannequin mesh but on the screen always htc vive’s default black controllers… I will be very happy if anyone help me… Or it means I can’t change them, I should write my own Blueprint from zero?

Go into the character blueprint and detach the nodes setting the controller model, I have an example of how to pull the models from SteamVR that people use (custom skins, ect) and if it works it overrides the hand models with those.

---

<div class="post-metadata">

**Author:** ![mahlukat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mahlukat](https://forums.unrealengine.com/u/mahlukat)\
**Post date:** [January 15, 2017, 11:08pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/523 "2017-01-15T23:08:18Z")

</div>

> [@;651591](#):
>
> Go into the character blueprint and detach the nodes setting the controller model, I have an example of how to pull the models from SteamVR that people use (custom skins, ect) and if it works it overrides the hand models with those.

Thank god, thank you for your kind help,

inside the vivepawn character blueprint, inside the comment place “On Possessed - Try and get skinned controllers from Steam”, there is a node called “GetVrDeviceModelandTexture” there is a execution “on success”. In node I break the connection of “on success”. But with ; it thinks it couldnt found my main controller so it shows hand controller. And hand animations are not working.

---

<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:** [January 15, 2017, 11:54pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/524 "2017-01-15T23:54:31Z")

</div>

> [@mahlukat;651619](#):
>
> Thank god, thank you for your kind help,
> 
> inside the vivepawn character blueprint, inside the comment place “On Possessed - Try and get skinned controllers from Steam”, there is a node called “GetVrDeviceModelandTexture” there is a execution “on success”. In node I break the connection of “on success”. But with ; it thinks it couldnt found my main controller so it shows hand controller. And hand animations are not working.

Just don’t call OnPossessed at all, it is only there for the hand skinning.

Also since the template is to show how to use functions of the plugin I don’t think I ever went back and added the hand animations back in, others have done so though.

---

<div class="post-metadata">

**Author:** ![JDubLD74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JDubLD74](https://forums.unrealengine.com/u/JDubLD74)\
**Post date:** [January 16, 2017, 4:23pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/525 "2017-01-16T16:23:25Z")

</div>

Just wanted to give a shout out to for putting together, it’s a huge help to a lot of people including myself.

---

<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:** [January 16, 2017, 7:44pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/526 "2017-01-16T19:44:31Z")

</div>

> [@Cr1tlord;651975](#):
>
> Just wanted to give a shout out to for putting together, it’s a huge help to a lot of people including myself.

Glad to hear that 🙂

---

<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:** [January 16, 2017, 7:45pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/527 "2017-01-16T19:45:50Z")

</div>

Pushed a new commit to template and plugin

```auto

Fixed Auto drop issue with constraints ignoring actor scale

```

Corrects a reported bug with auto drop and scaled objects.

Also I realized that I had the repository closed to pull requests. Pull requests should now be enabled on the master branch from here forward.

_Edit_ I also have some wishlist items I will try to get to week so expect more updates incoming in the next few days.

---

<div class="post-metadata">

**Author:** ![Silpher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Silpher](https://forums.unrealengine.com/u/Silpher)\
**Post date:** [January 16, 2017, 8:10pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/528 "2017-01-16T20:10:53Z")

</div>

> [@](#):
>
> Just wanted to give a shout out to for putting together, it’s a huge help to a lot of people including myself.

Yea definitely! Having tons of fun with plugin. Thanks a lot!

Quick question, Is there a way to limit the VRGrip interface settings/Interaction/Min translations to only one direction? So for example if I wanted to open the drawer but only open it not being able to shove it back in again?

Thanks again!

---

<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:** [January 16, 2017, 8:18pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/529 "2017-01-16T20:18:15Z")

</div>

> [@Silpher;652102](#):
>
> Yea definitely! Having tons of fun with plugin. Thanks a lot!
> 
> Quick question, Is there a way to limit the VRGrip interface settings/Interaction/Min translations to only one direction? So for example if I wanted to open the drawer but only open it not being able to shove it back in again?
> 
> Thanks again!

Yeah, you can change the values of that struct at any time, if you change members of it and set the min to the current location then it shouldn’t be able to be closed again (min is now where it is so it can’t move more).

Or if you just want to freeze it, make deny gripping true on it.

---

<div class="post-metadata">

**Author:** ![Rewirdev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rewirdev](https://forums.unrealengine.com/u/Rewirdev)\
**Post date:** [January 17, 2017, 12:29am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/530 "2017-01-17T00:29:38Z")

</div>

Thanks for the work you have put in!; I’ve migrated a VRPawn to your collision character. I’m having issues with the Vive\_PawnCharacter not working with Ikinema though… The log files is saying ‘Failed to get tracked ID Device’. It has worked intermittantly, but then stopped immediately afterwards. The weird thing is, controllers are tracking and working perfectly, even the grip animations and room-scale wlaking animations work, only arms aren’t being followed.

```auto

[2017.01.16-13.02.47:946][825]LogGameState: Match State Changed from WaitingToStart to InProgress
[2017.01.16-13.02.47:969][825]PIE: Info Play in editor start time for /Game/VirtualRealityBP/Maps/UEDPIE_0_MotionControllerMap 0.288
[2017.01.16-13.02.47:969][825]LogBlueprintUserMessages: Late PlayInEditor Detection: Level '/Game/VirtualRealityBP/Maps/MotionControllerMap.MotionControllerMap:PersistentLevel' has LevelScriptBlueprint '/Game/VirtualRealityBP/Maps/MotionControllerMap.MotionControllerMap:PersistentLevel.MotionControllerMap' with GeneratedClass '/Game/VirtualRealityBP/Maps/MotionControllerMap.MotionControllerMap_C' with ClassGeneratedBy '/Game/VirtualRealityBP/Maps/MotionControllerMap.MotionControllerMap:PersistentLevel.MotionControllerMap'
[2017.01.16-13.02.48:026][826]LogRenderer: Reallocating scene render targets to support 3240x1800 NumSamples 1 (Frame:3962).
[2017.01.16-13.02.48:027][826]VRExpansionFunctionLibraryLog:Warning: Couldn't Get Tracked Devices!!
[2017.01.16-13.02.55:527][498]LogBlueprintUserMessages: [Vive_PawnCharacter_1010]

```

---

<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:** [January 17, 2017, 12:33am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/531 "2017-01-17T00:33:23Z")

</div>

> [@Rewirdev;652213](#):
>
> Thanks for the work you have put in!; I’ve migrated a VRPawn to your collision character. I’m having issues with the Vive\_PawnCharacter not working with Ikinema though… The log files is saying ‘Failed to get tracked ID Device’. It has worked intermittantly, but then stopped immediately afterwards. The weird thing is, controllers are tracking and working perfectly, even the grip animations and room-scale wlaking animations work, only arms aren’t being followed.
> 
> ```auto
> 
> [2017.01.16-13.02.47:946][825]LogGameState: Match State Changed from WaitingToStart to InProgress
> [2017.01.16-13.02.47:969][825]PIE: Info Play in editor start time for /Game/VirtualRealityBP/Maps/UEDPIE_0_MotionControllerMap 0.288
> [2017.01.16-13.02.47:969][825]LogBlueprintUserMessages: Late PlayInEditor Detection: Level '/Game/VirtualRealityBP/Maps/MotionControllerMap.MotionControllerMap:PersistentLevel' has LevelScriptBlueprint '/Game/VirtualRealityBP/Maps/MotionControllerMap.MotionControllerMap:PersistentLevel.MotionControllerMap' with GeneratedClass '/Game/VirtualRealityBP/Maps/MotionControllerMap.MotionControllerMap_C' with ClassGeneratedBy '/Game/VirtualRealityBP/Maps/MotionControllerMap.MotionControllerMap:PersistentLevel.MotionControllerMap'
> [2017.01.16-13.02.48:026][826]LogRenderer: Reallocating scene render targets to support 3240x1800 NumSamples 1 (Frame:3962).
> [2017.01.16-13.02.48:027][826]VRExpansionFunctionLibraryLog:Warning: Couldn't Get Tracked Devices!!
> [2017.01.16-13.02.55:527][498]LogBlueprintUserMessages: [Vive_PawnCharacter_1010]
> 
> ```

So my plugin library can’t find the tracked devices, you must be on oculus plugin right and not steamvr? The VRExpansionFunctionLibrary functions for getting the device models only works with Open/SteamVR since it is their function.

---

<div class="post-metadata">

**Author:** ![Rewirdev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rewirdev](https://forums.unrealengine.com/u/Rewirdev)\
**Post date:** [January 17, 2017, 1:45am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/532 "2017-01-17T01:45:29Z")

</div>

Nah shouldn’t be, using etc vive and all the normal settings lol.

---

<div class="post-metadata">

**Author:** ![maki-san](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@maki-san](https://forums.unrealengine.com/u/maki-san)\
**Post date:** [January 17, 2017, 5:33am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/533 "2017-01-17T05:33:16Z")

</div>

Hey there Modentral.

Packaging my game for testing and I get a couple hundred of these errors:

UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: PCH.VRExpPluginExample.h.cpp  
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Module.VRExpansionPlugin.cpp  
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: E:\game\DatedBackups\1.16.17\Plugins\VRExpansionPlugin\Intermediate\Build\Win64\UE4\Inc\VRExpansionPlugin\VRBPDatatypes.generated.h(14): error C2007: #define syntax

Know anything about that?

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

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