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

<div class="post-metadata">

**Author:** ![1HP\_And\_A\_Dream](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@1HP\_And\_A\_Dream](https://forums.unrealengine.com/u/1HP_And_A_Dream)\
**Post date:** [October 14, 2016, 12:16am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/186 "2016-10-14T00:16:00Z")

</div>

> [@;609069](#):
>
> The components replicate themselves, so you would set up a multiplayer game like any other and be sure to run grip commands on the server.

By grip commands what do you mean? like the logic for a player picking up an object ?

---

<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 14, 2016, 12:17am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/187 "2016-10-14T00:17:23Z")

</div>

> [@1HP\_And\_A\_Dream;609072](#):
>
> By grip commands what do you mean? like when a player the logic I have fore players griping objects?

If you handle the gripping yourself then you have to do the multiplayer management of it. If you use the plugins grip functions they do it themselves.

For movement it uses the default engine replication for characters slightly modified to handle VR players.

---

<div class="post-metadata">

**Author:** ![1HP\_And\_A\_Dream](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@1HP\_And\_A\_Dream](https://forums.unrealengine.com/u/1HP_And_A_Dream)\
**Post date:** [October 14, 2016, 12:27am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/188 "2016-10-14T00:27:05Z")

</div>

> [@;609074](#):
>
> If you handle the gripping yourself then you have to do the multiplayer management of it. If you use the plugins grip functions they do it themselves.
> 
> For movement it uses the default engine replication for characters slightly modified to handle VR players.

oh ok, I noticed in an earlier post you said you have updated the grip functions. may be a n00b question but does your plugin update automatically?? if not how do I get your latest version of the plugin?

---

<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 14, 2016, 12:28am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/189 "2016-10-14T00:28:34Z")

</div>

> [@1HP\_And\_A\_Dream;609079](#):
>
> oh ok, I noticed in an earlier post you said you have updated the grip functions. may be a n00b question but does your plugin update automatically?? if not how do I get your latest version of the plugin?

From the github link, you download the zip or check it out with a git program.

---

<div class="post-metadata">

**Author:** ![1HP\_And\_A\_Dream](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@1HP\_And\_A\_Dream](https://forums.unrealengine.com/u/1HP_And_A_Dream)\
**Post date:** [October 14, 2016, 12:34am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/190 "2016-10-14T00:34:51Z")

</div>

> [@;609081](#):
>
> From the github link, you download the zip or check it out with a git program.

and then copy and paste it over the original plugin folder i have made?

---

<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 14, 2016, 12:39am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/191 "2016-10-14T00:39:09Z")

</div>

> [@1HP\_And\_A\_Dream;609083](#):
>
> and then copy and paste it over the original plugin folder i have made?

There are full instructions on the bitbucket, follow them and you should be good.

---

<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, 2016, 12:08am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/192 "2016-10-18T00:08:32Z")

</div>

Pushed a new commit - Documentation will be updated tomorrow

```auto

**10/17/2016** - Server side movement added back in (optional)

Made TickGrip function (handles grip movement) faster by not TArray indexing a hundred times and working off of a pointer instead.
Normally with a real array would be a net loss but looking through TArray's indexing code it is far heavier so should be a net gain (though insubstantial).

Added in optional server sided movement options to the grip function (client side movement still default)

Added in new vrgripinterface functions (Stiffnes/Damping/Movement Replication).

Added in a boolean to turn on movement replication merging for vrmovementcomponent (bAllowMovementMerging).
Off by default as it may cause hitches in high player count servers, can be turned on to lower bandwidth requirements at the
possible cost of the potential for server position corrections (haven't had it happen yet but the potential should theoretically be there with it active).

Fixed some addition transform bugs, added a helper function (MakeAdditionTransform) so that you can calculate it once if you intend to lerp between it and a null transform.

Fixed some InteractionSettings bugs.

```

Latest info video

I forgot to talk about adding back in server side movement (as a non default option) and exposing the late update settings to the grip function for more control. Also the plugin is no longer an OpenVR exclusive plugin, if compiling for a non SteamVR platform it will simply not compile the SteamVR specific code. Can be used on mobile and oculus platforms now.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/1/f/81f99a438997c18a3ac42adfd92927751c00168c.jpeg "UE4, VR Plugin New additions") ](https://www.youtube.com/watch?v=ktk4IRE0UbU)

---

<div class="post-metadata">

**Author:** ![The\_Revera\_Corporation](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_Revera\_Corporation](https://forums.unrealengine.com/u/The_Revera_Corporation)\
**Post date:** [October 19, 2016, 3:45am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/193 "2016-10-19T03:45:08Z")

</div>

Hi ,

Been enjoying your VRExpansionPlugin, it is brilliant.

Some quick questions:

Is it normal that when reparenting the 4.13 VR Pawn to VRCharacter the thumb-rotation and controller-roll-rotation stop working when teleporting?  
For some reason, when I pull the triggers, I get moved sometimes sideways, depending on which way I am facing. Pressing the grip buttons also moves me sideways sometimes. It is hard to explain, but I have tried even in a blank project and it is just really strange. Maybe I am setting something up wrong or Steam VR is being wonky?

Thanks, and I hope my questions aren’t too vague.

Best,

---

<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, 2016, 3:45pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/194 "2016-10-19T15:45:23Z")

</div>

> [@The Revera Corporation;611444](#):
>
> Hi ,
> 
> Been enjoying your VRExpansionPlugin, it is brilliant.
> 
> Some quick questions:
> 
> Is it normal that when reparenting the 4.13 VR Pawn to VRCharacter the thumb-rotation and controller-roll-rotation stop working when teleporting?  
> For some reason, when I pull the triggers, I get moved sometimes sideways, depending on which way I am facing. Pressing the grip buttons also moves me sideways sometimes. It is hard to explain, but I have tried even in a blank project and it is just really strange. Maybe I am setting something up wrong or Steam VR is being wonky?
> 
> Thanks, and I hope my questions aren’t too vague.
> 
> Best,

If you mean the template pawn, it spawns two extra controllers outside of the VRCharacter which has its own controllers and it handles things differently. I don’t remember what trigger and grip do in that template but you may be colliding with the spawned in controllers somehow? The VRCharacter uses full capsule collision so if you are running into something that is set to block a pawn it will stop you and “slide” on the obstacle like a normal character would.

I think the capsule is currently set to ignore everything except for static channel objects as well.

I wouldn’t suggest trying to reparent the 4.13 template pawn to a VRCharacter but rather copy over the blueprint code you want to the VRCharacter, it will make sure that you aren’t using the wrong systems. If you want to use the controllers from the template you can set the ones that come with the VRCharacter to not tick, keep in mind though that the default controllers don’t have any of the plugins functionality for replication or gripping.

---

<div class="post-metadata">

**Author:** ![The\_Revera\_Corporation](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_Revera\_Corporation](https://forums.unrealengine.com/u/The_Revera_Corporation)\
**Post date:** [October 19, 2016, 5:29pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/195 "2016-10-19T17:29:57Z")

</div>

> [@;611688](#):
>
> If you mean the template pawn, it spawns two extra controllers outside of the VRCharacter which has its own controllers and it handles things differently. I don’t remember what trigger and grip do in that template but you may be colliding with the spawned in controllers somehow? The VRCharacter uses full capsule collision so if you are running into something that is set to block a pawn it will stop you and “slide” on the obstacle like a normal character would.
> 
> I think the capsule is currently set to ignore everything except for static channel objects as well.
> 
> I wouldn’t suggest trying to reparent the 4.13 template pawn to a VRCharacter but rather copy over the blueprint code you want to the VRCharacter, it will make sure that you aren’t using the wrong systems. If you want to use the controllers from the template you can set the ones that come with the VRCharacter to not tick, keep in mind though that the default controllers don’t have any of the plugins functionality for replication or gripping.

Ah! Excellent info here , thank you. I have a strong hunch it is indeed the collision of the controllers colliding with the VRCharacter capsule now that you mention it.

I will try your suggestions today, they make a lot of sense.

Kind regards,

---

<div class="post-metadata">

**Author:** ![ParadiseVR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/paradisevr/32/553313_2.png) [@ParadiseVR](https://forums.unrealengine.com/u/ParadiseVR)\
**Post date:** [October 20, 2016, 1:25pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/196 "2016-10-20T13:25:12Z")

</div>

Hi !  
Very good job with plugin !  
I successfully set up the movement of my character but i have trouble implementing the grip functions. I don’t understand segment from the documentation "All actors to be gripped currently MUST have a UPrimitiveComponent derived component as the ROOT component "  
I first think i understand but i dont know how or where i can achieve with the actor i want to be grippable. When i want to add a component, i dont seem to find UPrimitiveComponent. I feel that i am missing something very simple here but i ve been stucked  
for almost two days now lol

---

<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, 2016, 1:43pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/197 "2016-10-20T13:43:50Z")

</div>

> [@ParadiseVR;612130](#):
>
> Hi !  
> Very good job with plugin !  
> I successfully set up the movement of my character but i have trouble implementing the grip functions. I don’t understand segment from the documentation "All actors to be gripped currently MUST have a UPrimitiveComponent derived component as the ROOT component "  
> I first think i understand but i dont know how or where i can achieve with the actor i want to be grippable. When i want to add a component, i dont seem to find UPrimitiveComponent. I feel that i am missing something very simple here but i ve been stucked  
> for almost two days now lol

Basically the first (or only) component on the actor must be a primitive (not just scene component). is because I have no way of knowing exactly what you want to pick up when picking up an actor so I pull the root as the target. Static meshes, skeletal meshes, basics shapes, these are all primitive components already, you just don’t want a “Scene component” as the root unless you are going to use the “GripComponent” function instead which allows you to target specific components.

---

<div class="post-metadata">

**Author:** ![ParadiseVR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/paradisevr/32/553313_2.png) [@ParadiseVR](https://forums.unrealengine.com/u/ParadiseVR)\
**Post date:** [October 20, 2016, 2:53pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/198 "2016-10-20T14:53:58Z")

</div>

Ok thanks !  
Are there any templates i can find in order to analyse how it works ? Because even with the documentation i am having trouble making it work properly.

---

<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, 2016, 3:15pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/199 "2016-10-20T15:15:12Z")

</div>

> [@ParadiseVR;612171](#):
>
> Ok thanks !  
> Are there any templates i can find in order to analyse how it works ? Because even with the documentation i am having trouble making it work properly.

The SteamVR template in forum section uses it for one of the pawns.

My example project won’t come out until I am done freelancing for a bit.

---

<div class="post-metadata">

**Author:** ![ParadiseVR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/paradisevr/32/553313_2.png) [@ParadiseVR](https://forums.unrealengine.com/u/ParadiseVR)\
**Post date:** [October 20, 2016, 3:25pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/200 "2016-10-20T15:25:55Z")

</div>

Ok i ll go check the SteamVR template thanks

---

<div class="post-metadata">

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

</div>

Pushed a new commit

```auto

**10/21/2016** - Added 4.14 preview 1 support

Added cross compatibility between 4.13 and 4.14, due to Enums changing behavior I foresee having to lockout the 4.13 compatibility after 4.15 as I already cannot use 
the new formats on 4.13 that 4.14 is starting to require.

I personally see 4.14 as the start of true VR support in the engine anyway.

```

---

<div class="post-metadata">

**Author:** ![Fantasifall](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fantasifall](https://forums.unrealengine.com/u/Fantasifall)\
**Post date:** [October 22, 2016, 4:06am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/202 "2016-10-22T04:06:58Z")

</div>

Hey thanks for such a quick update!

I’m having an issue with ChildActors attached to the motioncontrollers. I need to replicate the childactors events, but even with “replicate movement” set to off the clients have the attached actor moving faster than the motioncontroller. It’s not no late update, it’s doing the opposite, sort of like the server is doing prediction. Could be an engine bug or part of GripMotionController?

---

<div class="post-metadata">

**Author:** ![ParadiseVR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/paradisevr/32/553313_2.png) [@ParadiseVR](https://forums.unrealengine.com/u/ParadiseVR)\
**Post date:** [October 22, 2016, 12:30pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/203 "2016-10-22T12:30:44Z")

</div>

Does anyone knows how i can rescale rooted static meshes ? Pickable stuff are too small and i d like to rescale them. Thx

---

<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 22, 2016, 1:23pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/204 "2016-10-22T13:23:13Z")

</div>

> [@Fantasifall;613026](#):
>
> Hey thanks for such a quick update!
> 
> I’m having an issue with ChildActors attached to the motioncontrollers. I need to replicate the childactors events, but even with “replicate movement” set to off the clients have the attached actor moving faster than the motioncontroller. It’s not no late update, it’s doing the opposite, sort of like the server is doing prediction. Could be an engine bug or part of GripMotionController?

As in you are directly attaching another actor to the motion controllers themselves? I would check the tick order in that case, if the controllers are ticking before / after the child actors it can cause different behavior. Child COMPONENTS are auto set to tick after their parent components so that they get the correct location when they update their position.

I haven’t looked at how they handle child actors and tick ordering, regardless attached actors shouldn’t be “faster”. I don’t know what your setup is.

> [@ParadiseVR;613120](#):
>
> Does anyone knows how i can rescale rooted static meshes ? Pickable stuff are too small and i d like to rescale them. Thx

If you mean rescale them on grip, pass in a different scale in the transform you give it. If you mean rescale in the world…set the actors scale.

---

<div class="post-metadata">

**Author:** ![ParadiseVR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/paradisevr/32/553313_2.png) [@ParadiseVR](https://forums.unrealengine.com/u/ParadiseVR)\
**Post date:** [October 22, 2016, 3:02pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/205 "2016-10-22T15:02:10Z")

</div>

Everything looks good in the world. The thing i dont get is that when i grip the object, it resizes to the default size. Wich is way too small in case.

I dont think the problem is coming from the pick up drop blueprint as i do not change anything about the scale

 ![UE4Pickup.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/7/f7655a9b7ed16110eebdd615afdd843705d8b4a0.png)

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

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