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

<div class="post-metadata">

**Author:** ![anonymous\_user\_e53888fc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e53888fc](https://forums.unrealengine.com/u/anonymous_user_e53888fc)\
**Post date:** [September 19, 2017, 11:13am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1560 "2017-09-19T11:13:33Z")

</div>

Good days, sorry my English is very bad, that’s why I’ll speak in my native language

¿como puedo conseguir la plantilla de ejemplo mas reciente? solo consigo las antiguas.  
Gracias por adelantado.

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [September 19, 2017, 3:12pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1561 "2017-09-19T15:12:02Z")

</div>

> [@Ezeran](#):
>
> Good days, sorry my English is very bad, that’s why I’ll speak in my native language
> 
> ¿como puedo conseguir la plantilla de ejemplo mas reciente? solo consigo las antiguas.  
> Gracias por adelantado.

Debería poder descargarlo desde

[https://bitbucket.org//vrexppluginexample/downloads/](https://bitbucket.org//vrexppluginexample/downloads/)

Lo siento, pero he utilizado Google Translate para responder

---

<div class="post-metadata">

**Author:** ![spaceharry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spaceharry](https://forums.unrealengine.com/u/spaceharry)\
**Post date:** [September 19, 2017, 4:59pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1562 "2017-09-19T16:59:16Z")

</div>

Hi ,

Thank you very much for the plugin. I was using it recently in my project.

For attaching a Skeletal Mesh to the the capsule bottom with the ParentRelAttachVRComponent I allowed myself to add some code into your plugin. I submited the change as a pull request to your bitbucket in case you and others may find it usefull.

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:** [September 19, 2017, 5:19pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1563 "2017-09-19T17:19:15Z")

</div>

> [@spaceharry](#):
>
> Hi ,
> 
> Thank you very much for the plugin. I was using it recently in my project.
> 
> For attaching a Skeletal Mesh to the the capsule bottom with the ParentRelAttachVRComponent I allowed myself to add some code into your plugin. I submited the change as a pull request to your bitbucket in case you and others may find it usefull.
> 
> Thanks again !

Thanks for the contribution! I had plans to get around to something like that eventually but hadn’t done so yet.  
I’ll merge it in and make a few minor changes.

_Edit_  
You will notice that I adjusted the FeetLocation code to be more simplistic.

We don’t actually need the GetActorFeetPosition() function because the VRCharacters base location  
is actor 0 on Z and the Simple Characters base position is +HalfCapsuleHeight which is accounted  
for with the VRSceneComponent which adjusts downward by -HalfCapsuleHeight.

So all that is really needed is to set the relative Z location to 0.0f if wanting to use foot position, which is both faster, and cleaner.

However thanks for the core concept, I am sure that plenty of users will appreciate the addition.

---

<div class="post-metadata">

**Author:** ![PucheDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/puchedev/32/978017_2.png) [@PucheDev](https://forums.unrealengine.com/u/PucheDev)\
**Post date:** [September 19, 2017, 7:18pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1564 "2017-09-19T19:18:30Z")

</div>

> [@Ezeran](#):
>
> Good days, sorry my English is very bad, that’s why I’ll speak in my native language
> 
> ¿como puedo conseguir la plantilla de ejemplo mas reciente? solo consigo las antiguas.  
> Gracias por adelantado.

Hey, Spanish is my Native language.

* * *

Spanish Response

Hey!

Pues en la pagina principal tienes 2 vias para conseguirlo.

Tienes las versiones Prebuild. Estas ya vienen compiladas, no necesitas C++ ni nada para hacerlo funcionar. Bajas la versión Prebuild de tu versión, la metes en la carpeta Plugins del proyecto, si no la tienes la creas, y el Zip que te bajas el contenido lo metes tal cual.

Template actualizado, este es bajarlo y ejecutarlo como un Proyecto. es de la Version 4.17

El template de ejemplo de ya viene con todo hecho, te bajas el Template y puedes probar todas las funciones, es bajarlo ejecutarlo y listo.

[Template Packaged Download](https://drive.google.com/file/d/0B5cM3oP2O4-UOS1jY1hFY3FJMEU/view?usp=sharing)

Plugin Version 4.17 Prebuild  
[4.17.1 - 8/16/2017 - Full Binaries and Source Package](https://drive.google.com/file/d/0B5cM3oP2O4-Uc1dpdjlwVTF6LVU/view?usp=sharing) En el primer Post tienes todo. Ya si quieres la ultisima versión, has de compilarla tu, en el bitbucket tienes un tutorial magnifico para hacerlo.

Un saludo!

---

<div class="post-metadata">

**Author:** ![spaceharry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spaceharry](https://forums.unrealengine.com/u/spaceharry)\
**Post date:** [September 19, 2017, 8:33pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1565 "2017-09-19T20:33:54Z")

</div>

> [@](#):
>
> Thanks for the contribution! I had plans to get around to something like that eventually but hadn’t done so yet.  
> I’ll merge it in and make a few minor changes.  
> …

Thanks for accepting the pull request 🙂 . Yes your modification makes sense ! I think I wasnt sure if actor Z 0 is at the bottom of the capsule.

---

<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:** [September 20, 2017, 5:29am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1566 "2017-09-20T05:29:24Z")

</div>

> [@](#):
>
> You also likely have auto drop distance very low if it is dropping right after being picked up.
> 
> Is your object scaled very small from default?

Sorry to bug ya again. You don’t happen to remember where “auto drop distance” var is, do you? I can’t seem to find it…  
Overriding the HasSocketInRange function worked perfect, btw.

---

<div class="post-metadata">

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

</div>

> [@](#):
>
> Sorry to bug ya again. You don’t happen to remember where “auto drop distance” var is, do you? I can’t seem to find it…  
> Overriding the HasSocketInRange function worked perfect, btw.

ConstraintBreakDistance in the grip settings struct.

That or override the GripBreakDistance() function in the interface and pass in a different value.

If it is it’s default of 100 units and the object unscaled is close to that then it would be dropping fairly easily.

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [September 21, 2017, 3:47pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1568 "2017-09-21T15:47:43Z")

</div>

Pushed a new commit to the plugin repository

Plugin

```auto

Added VRGameViewportClient class  
 class is intended to provide support for Local Mixed play between a mouse and keyboard player  
and a VR player. It is not needed outside of that use.    

There is a new wiki page under Misc Classes that covers its use  
[https://bitbucket.org//vrexpansionplugin/wiki/Misc%20Classes](https://bitbucket.org//vrexpansionplugin/wiki/Misc%20Classes)

Added functionality for the ParentRelAttachVRComponent, it can now be attached to the bottom of the capsule at the foot location
instead of at the HMD location. Only happens when bUseFeetLocation is checked. Thanks to SpaceHarry for the initial pull
request, I had plans to do but kept forgetting about it.  

```

Template

```auto

Added VRGameViewportClient class blueprint override to template and assigned it as the default GameViewportClient class.
 is to show how to change the input parameters for it.  

```

---

<div class="post-metadata">

**Author:** ![PucheDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/puchedev/32/978017_2.png) [@PucheDev](https://forums.unrealengine.com/u/PucheDev)\
**Post date:** [September 21, 2017, 7:03pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1569 "2017-09-21T19:03:16Z")

</div>

> [@](#):
>
> Pushed a new commit to the plugin repository
> 
> Plugin
> 
> ```auto
> 
> Added VRGameViewportClient class
> class is intended to provide support for Local Mixed play between a mouse and keyboard player
> and a VR player. It is not needed outside of that use.
> 
> There is a new wiki page under Misc Classes that covers its use
> [https://bitbucket.org//vrexpansionplugin/wiki/Misc%20Classes](https://bitbucket.org//vrexpansionplugin/wiki/Misc%20Classes)
> 
> Added functionality for the ParentRelAttachVRComponent, it can now be attached to the bottom of the capsule at the foot location
> instead of at the HMD location. Only happens when bUseFeetLocation is checked. Thanks to SpaceHarry for the initial pull
> request, I had plans to do but kept forgetting about it. 
> 
> ```
> 
> Template
> 
> ```auto
> 
> Added VRGameViewportClient class blueprint override to template and assigned it as the default GameViewportClient class.
> is to show how to change the input parameters for it. 
> 
> ```

is Amazing. Thanks , Have you got a compiled version? I can’t compile my project with source… Always fails… i don’t know why…

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [September 21, 2017, 8:00pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1570 "2017-09-21T20:00:37Z")

</div>

> [@Aidan\_Puche](#):
>
> is Amazing. Thanks , Have you got a compiled version? I can’t compile my project with source… Always fails… i don’t know why…

I will post a pre-compiled version tonight, currently I am building a 4.18 preview version and don’t want to switch engines at the moment.

You can link me the build error you get though so I can help you get going self compiling.

---

<div class="post-metadata">

**Author:** ![duyth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@duyth](https://forums.unrealengine.com/u/duyth)\
**Post date:** [September 21, 2017, 8:33pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1571 "2017-09-21T20:33:57Z")

</div>

@

Any plan to add/suport interactions for Top Down View? Something like what you can do in the VR Editor , for example  
Press the Side Buttons on both controllers and move them around each other to rotate the world around you, as if you are grabbing the world with your hands and then rotating it.  
Press the Side Buttons on both controllers and move them toward or away from each other to scales the world up or down.

> **[Virtual Scouting](https://docs.unrealengine.com/5.1/en-US/virtual-scouting/)**
>
> Virtual Scouting lets filmmakers scout a digital environment in virtual reality.

I don’t know C++ so thought I would check with you before starting learning C++ just to understand EPIC’s codes to replicate over blueprints ☹

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [September 21, 2017, 8:53pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1572 "2017-09-21T20:53:29Z")

</div>

> [@duyth](#):
>
> @
> 
> Any plan to add/suport interactions for Top Down View? Something like what you can do in the VR Editor , for example  
> Press the Side Buttons on both controllers and move them around each other to rotate the world around you, as if you are grabbing the world with your hands and then rotating it.  
> Press the Side Buttons on both controllers and move them toward or away from each other to scales the world up or down.  
> [https://docs.unrealengine.com/latest…r/VR/Controls/](https://docs.unrealengine.com/latest/INT/Engine/Editor/VR/Controls/)
> 
> I don’t know C++ so thought I would check with you before starting learning C++ just to understand EPIC’s codes to replicate over blueprints ☹

That should all be easily possible with some blueprint setups bound to the controls.

Don’t think it would take anything special on the plugins part to do it and you shouldn’t really need the c++ source as a reference to be honest.

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [September 21, 2017, 11:18pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1573 "2017-09-21T23:18:59Z")

</div>

> [@Aidan\_Puche](#):
>
> is Amazing. Thanks , Have you got a compiled version? I can’t compile my project with source… Always fails… i don’t know why…

Pre-compiled version is updated to the 09/21/17 version of the plugin.

---

<div class="post-metadata">

**Author:** ![PucheDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/puchedev/32/978017_2.png) [@PucheDev](https://forums.unrealengine.com/u/PucheDev)\
**Post date:** [September 21, 2017, 11:27pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1574 "2017-09-21T23:27:33Z")

</div>

Informagic, now compiles without any problems. Foot attachment come to me!

, add my game to the WIP games. I’ve got a Steam page, but yet not ready for public ( is in steam revision). Meanwhile, is the link my project to my website (Only coming soon page, but is something) When the Steam Page is ready for everyone i’ll update the link.

Game Name: Viar Warfare - [www.viarwarfare.com](http://www.viarwarfare.com).

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [September 22, 2017, 12:22am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1575 "2017-09-22T00:22:50Z")

</div>

> [@Aidan\_Puche](#):
>
> Informagic, now compiles without any problems. Foot attachment come to me!
> 
> , add my game to the WIP games. I’ve got a Steam page, but yet not ready for public ( is in steam revision). Meanwhile, is the link my project to my website (Only coming soon page, but is something) When the Steam Page is ready for everyone i’ll update the link.
> 
> Game Name: Viar Warfare - [www.viarwarfare.com](http://www.viarwarfare.com).

Adding it, and good luck

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [September 22, 2017, 12:46am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1576 "2017-09-22T00:46:11Z")

</div>

There is a 4.18 Preview 1 branch up that appears to be functional in the repository now, I would be careful however as the editor has crashed on my several times already and preview appears to be rough.

---

<div class="post-metadata">

**Author:** ![badineen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@badineen](https://forums.unrealengine.com/u/badineen)\
**Post date:** [September 22, 2017, 5:35am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1577 "2017-09-22T05:35:01Z")

</div>

I’m having trouble attempting to make the teleportation arcs visible over a network (it’s the final step I need to implement a ‘spectator mode’ in which a host becomes a camera that can see exactly what a Vive\_PawnCharacter player on a client computer is seeing).

I have tried making all the components in BP\_Teleport\_Controller replicate, making many of the variables replicate (such as the SplineMeshComponent array SplineMeshes), removing the branch for IsLocal under BP\_Teleport\_Controller EventTick, and making all the code after it replicate as Multicast. Even so, there is no sign of the client’s teleportation arc on the host camera. The host camera is accurately following the client camera so is not a connection issue. Is there something I missed, or something I need to manually implement?

Also, thank you for all your hard work. We appreciate 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:** [September 22, 2017, 12:25pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1578 "2017-09-22T12:25:25Z")

</div>

> [@badineen](#):
>
> I’m having trouble attempting to make the teleportation arcs visible over a network (it’s the final step I need to implement a ‘spectator mode’ in which a host becomes a camera that can see exactly what a Vive\_PawnCharacter player on a client computer is seeing).
> 
> I have tried making all the components in BP\_Teleport\_Controller replicate, making many of the variables replicate (such as the SplineMeshComponent array SplineMeshes), removing the branch for IsLocal under BP\_Teleport\_Controller EventTick, and making all the code after it replicate as Multicast. Even so, there is no sign of the client’s teleportation arc on the host camera. The host camera is accurately following the client camera so is not a connection issue. Is there something I missed, or something I need to manually implement?
> 
> Also, thank you for all your hard work. We appreciate it!

mmm?

Are you working off of a very old version of the template (like pre 4.15?) or did you modify it? I set up arc replication a while back.

If you are on your own project and just trying to get Epics arc to replicate you can follow what I did, you need to spawn the teleport controllers on remote clients as well. By default the Epic setup spawns the teleport controllers locally, you need to spawn on both, and then when activate teleport is called you need to replicate that to remote clients as well.

You don’t replicate the meshes as the actors are local, you replicate when the teleport system starts and stops and have the local clients draw the arcs.

---

<div class="post-metadata">

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

</div>

> [@](#):
>
> That should all be easily possible with some blueprint setups bound to the controls.
> 
> Don’t think it would take anything special on the plugins part to do it and you shouldn’t really need the c++ source as a reference to be honest.

Really? I checked other tutorials on youtube and they all used the spring-arm concept , thought VR would require a special trick. Would you suggest to actually move the camera or just rotate/zoom the entire base plane?

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

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