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

<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:** [March 31, 2018, 2:59pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2259 "2018-03-31T14:59:36Z")

</div>

Added a new use game to the list

[Spacescape](http://store.steampowered.com/app/639560/Spacescape/)

---

<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:** [April 1, 2018, 9:37am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2260 "2018-04-01T09:37:35Z")

</div>

> [@](#):
>
> Just set that setting to short and use MovementAction\_SnapTurn or a custom move action. I need to go in a optimize movement actions so they use the delayed movement processing (FScopedMovement) of the CMC but it works as is.
> 
> Its only snappy with bytes because its not enough precision for the pivot and offset to not be noticeable, FPS games don’t require that kind of precision.
> 
> Regardless its a 1 byte difference on repped movement and only happens when it changes, so during turning or smooth movement.

MovementAction\_SnapTurn seems to be not enough reliable for smooth turn: testing it in multiplayer environment, it spams network connection (to turn in fact you are calling that function repeatedly) until player starts to stutter and move in circle instead of rotating in place. A start/stop smoothing turn function will be definitely better. Should I code it by myself or you have any other suggestions?

as usual, many thanks and keep up the good work!

---

<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:** [April 1, 2018, 12:15pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2261 "2018-04-01T12:15:19Z")

</div>

Hi , i’m been offline a long time for personal reasons, it’s all fine now. Whatever, i got a few questions…

With Run Euro Smooth, we can change Euro Smooth filter in a Grippable Mesh on the fly? pressing a button, trigger or something? I see your video and readed the wiki. But, Run Euro Smooth return a smoothed vector, but how we apply it? is there any function to do on the fly as your video with the slider? I work with multiplayer, and i want to give to the user a way to smooth the controllers. As mouse sensivity. In a certain situations (Sniper Rifle)

And if you can, fix my title, es ViarWarfare, not warefare. Thanks for all, plugin is great tool and is become bigger each time.

Regards,  
Aidan.

---

<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:** [April 1, 2018, 1:17pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2262 "2018-04-01T13:17:25Z")

</div>

> [@Curs0](#):
>
> MovementAction\_SnapTurn seems to be not enough reliable for smooth turn: testing it in multiplayer environment, it spams network connection (to turn in fact you are calling that function repeatedly) until player starts to stutter and move in circle instead of rotating in place. A start/stop smoothing turn function will be definitely better. Should I code it by myself or you have any other suggestions?
> 
> as usual, many thanks and keep up the good work!

Its not a network spam issue, it only adds a quantized vector to the movement list, it is because rollback of characters doesn’t include rotation so if you have a missed packet that isn’t eventually played back then it doesn’t receive the location change from an offset rotation, only the rotation itself (characters are client side rotation authoritative). I have a branch to look at that, but will be a major overhaul of sections of the default engine character.

Start / Stop is better anyway for smooth turning, however it should be queued in with the movement system or it will be out of sync. You can use a custom movement action for that, pass start/stop as one of the FVector parameters and use the rot for speed. At the end of the rotation it should also send a syncing rot to the server. I may add as a built in movement action in the future, but i’ll have to do some testing.

_Edit_ I’ll note that fixing the rollback code was going to be my original solution to as it being wrong in the first place irks me (no need for rotation rollback with FPS pawns because a capsule is the same no matter the rotation). However a short term solution of a toggle is likely better anyway and would prevent incorrect usage.

---

<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:** [April 1, 2018, 1:29pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2263 "2018-04-01T13:29:26Z")

</div>

> [@Aidan\_Puche](#):
>
> Hi , i’m been offline a long time for personal reasons, it’s all fine now. Whatever, i got a few questions…
> 
> With Run Euro Smooth, we can change Euro Smooth filter in a Grippable Mesh on the fly? pressing a button, trigger or something? I see your video and readed the wiki. But, Run Euro Smooth return a smoothed vector, but how we apply it? is there any function to do on the fly as your video with the slider? I work with multiplayer, and i want to give to the user a way to smooth the controllers. As mouse sensivity. In a certain situations (Sniper Rifle)
> 
> And if you can, fix my title, es ViarWarfare, not warefare. Thanks for all, plugin is great tool and is become bigger each time.
> 
> Regards,  
> Aidan.

There is a boolean in advanced grip settings to turn on the smoothing for a double handed grip, it uses the global settings to save performance but you can apply the amount of smoohing seperatly.

---

<div class="post-metadata">

**Author:** ![sphinix257](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sphinix257](https://forums.unrealengine.com/u/sphinix257)\
**Post date:** [April 1, 2018, 7:07pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2264 "2018-04-01T19:07:46Z")

</div>

if i wanted to splice in a actor has tag command to determine climbable and non-climbable. where and how would you do so.

---

<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:** [April 1, 2018, 8:07pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2265 "2018-04-01T20:07:25Z")

</div>

> [@](#):
>
> I may add as a built in movement action in the future, but i’ll have to do some testing.

We’ll be glad to help 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:** [April 1, 2018, 9:12pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2266 "2018-04-01T21:12:34Z")

</div>

> [@sphinix257](#):
>
> if i wanted to splice in a actor has tag command to determine climbable and non-climbable. where and how would you do so.

In the IsObjectClimbable function, override it, check HasTag

_Edit_ actually, forgot, the gameplay tag interface isn’t blueprintable, you’d have to have a base class to check.

---

<div class="post-metadata">

**Author:** ![sphinix257](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sphinix257](https://forums.unrealengine.com/u/sphinix257)\
**Post date:** [April 2, 2018, 1:50am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2267 "2018-04-02T01:50:04Z")

</div>

> [@](#):
>
> In the IsObjectClimbable function, override it, check HasTag
> 
> _Edit_ actually, forgot, the gameplay tag interface isn’t blueprintable, you’d have to have a base class to check.

so what if i was creating a blueprint for each climbable object, and using collision messes inside it to highlight very specific spots on a mesh that were gripable. like only being able to grab the bars on a ladder. openings in a wall, or the top of a handrail.

also noob question. i was importing my gun models in and playing with it. and im on a bit of a run as for learning on my own as to how to handle weapons. but somehow im not able to figure out how to check the overlap from my hand and a button on the gun. how should i handle 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:** [April 2, 2018, 1:54pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2268 "2018-04-02T13:54:07Z")

</div>

> [@sphinix257](#):
>
> so what if i was creating a blueprint for each climbable object, and using collision messes inside it to highlight very specific spots on a mesh that were gripable. like only being able to grab the bars on a ladder. openings in a wall, or the top of a handrail.
> 
> also noob question. i was importing my gun models in and playing with it. and im on a bit of a run as for learning on my own as to how to handle weapons. but somehow im not able to figure out how to check the overlap from my hand and a button on the gun. how should i handle that

Then it is much easier, just make a collision volume component and cast to it in the IsObjectClimbable function, return true/false if it was one.

You need to check overlap settings, the gun may actually be overlapping the button, or your hand may not be set to overlap it correctly. Check your collision channels, and print out overlaps on it if you want a realtime visual indicator.

---

<div class="post-metadata">

**Author:** ![Paul.H4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Paul.H4](https://forums.unrealengine.com/u/Paul.H4)\
**Post date:** [April 2, 2018, 4:18pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2269 "2018-04-02T16:18:08Z")

</div>

I have been using plugin for a student project recently however I have been unable to get the template open on my machine. If its not too much to ask could someone who has the template please screenshot the climbing blueprint so that I can use it as reference moving forward? Would be very much appreciated. 🙂

---

<div class="post-metadata">

**Author:** ![sphinix257](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sphinix257](https://forums.unrealengine.com/u/sphinix257)\
**Post date:** [April 3, 2018, 1:49am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2270 "2018-04-03T01:49:37Z")

</div>

> [@](#):
>
> Then it is much easier, just make a collision volume component and cast to it in the IsObjectClimbable function, return true/false if it was one.
> 
> You need to check overlap settings, the gun may actually be overlapping the button, or your hand may not be set to overlap it correctly. Check your collision channels, and print out overlaps on it if you want a realtime visual indicator.

well i was more confused as to how to get a refercence of the motion controllers into the blue print for the gun. i can figure out the overlap. but i couldnt find the reference

---

<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:** [April 3, 2018, 1:54am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2271 "2018-04-03T01:54:10Z")

</div>

> [@sphinix257](#):
>
> well i was more confused as to how to get a refercence of the motion controllers into the blue print for the gun. i can figure out the overlap. but i couldnt find the reference

IsHeld returns holding controller, also OnGrip sends it in.

Not sure why you need that for the button though.

---

<div class="post-metadata">

**Author:** ![sphinix257](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sphinix257](https://forums.unrealengine.com/u/sphinix257)\
**Post date:** [April 3, 2018, 3:41am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2272 "2018-04-03T03:41:10Z")

</div>

> [@](#):
>
> IsHeld returns holding controller, also OnGrip sends it in.
> 
> Not sure why you need that for the button though.

im still learning so i could be doing it wrong. but would have figured i needed to check for a collision or overlap and check if it were items i want to alow to press the button. = hands.

currently its just hands. but soon i would replace it with ammo clips so i can reload properly. but i would need a button like code for a bolt release also.

---

<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:** [April 3, 2018, 12:19pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2273 "2018-04-03T12:19:20Z")

</div>

> [@sphinix257](#):
>
> im still learning so i could be doing it wrong. but would have figured i needed to check for a collision or overlap and check if it were items i want to alow to press the button. = hands.
> 
> currently its just hands. but soon i would replace it with ammo clips so i can reload properly. but i would need a button like code for a bolt release also.

You can just set a collision channel to control that if you want, or verify yes, but it would be better as a VRButtonComponent child class that handles it for you, not part of the gun blueprint itself.

Then the button just passes on the pressed / released events to the gun and the gun doesn’t have to worry about any of 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:** [April 4, 2018, 12:00am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2274 "2018-04-04T00:00:41Z")

</div>

Pushed a new commit to the plugin tonight, while looking into some server rollback changes I ran into a bug I had introduced recently into the movement actions system.

```auto

Whoops!

Fixing some values not setting (replicating) after converting the movement action 
system to an array of actions.

```

---

<div class="post-metadata">

**Author:** ![dubako](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dubako](https://forums.unrealengine.com/u/dubako)\
**Post date:** [April 4, 2018, 10:49pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2276 "2018-04-04T22:49:35Z")

</div>

PROBLEM WITH SPAWNING ON LEVEL RELOAD: if i start Play-In-Editor i spawn at my player start with the correct floor height. but then when my character dies and the map reloads, i am stuck in the floor as though i had set my tracking origin to eye level. i tried messing around with the tracking origin stuff but i couldn’t fix it. once again, when i start play in editor initially everything is fine, but when the node fires to re-open the level, it freezes up for a long time and then i start in the floor. i have tested on multiple levels and tried many things already but no luck.

---

<div class="post-metadata">

**Author:** ![sphinix257](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sphinix257](https://forums.unrealengine.com/u/sphinix257)\
**Post date:** [April 4, 2018, 11:04pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2277 "2018-04-04T23:04:24Z")

</div>

i want to say thanks. plugin has been extremely helpful. and you and the template has been extremely helpful in allowing me to learn a \*\*\*\* ton about coding for engine, as well as VR. and its a blast. thankyou.

can you by chance point me in the right direction to editing climing so that my grips dont go away when i grab whit the other hand. so i can properly 2 hand climb without my hands disconcerting unless i release the grip

---

<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:** [April 5, 2018, 12:22am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2278 "2018-04-05T00:22:03Z")

</div>

> [@sphinix257](#):
>
> i want to say thanks. plugin has been extremely helpful. and you and the template has been extremely helpful in allowing me to learn a \*\*\*\* ton about coding for engine, as well as VR. and its a blast. thankyou.
> 
> can you by chance point me in the right direction to editing climing so that my grips dont go away when i grab whit the other hand. so i can properly 2 hand climb without my hands disconcerting unless i release the grip

Generally that would be just you locking the mesh in place for one hand. You can decide to run the offset logic in some sort of combination center point between the hands but I wouldn’t suggest it since they can seperate.

You can store both locations and only use the newest one for current grip logic, but it will pull your other hand with you. Think about how it would have to work otherwise, your hands aren’t actually rooted in place in the real world.

---

<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:** [April 5, 2018, 12:23am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2279 "2018-04-05T00:23:24Z")

</div>

> [@dubako](#):
>
> PROBLEM WITH SPAWNING ON LEVEL RELOAD: if i start Play-In-Editor i spawn at my player start with the correct floor height. but then when my character dies and the map reloads, i am stuck in the floor as though i had set my tracking origin to eye level. i tried messing around with the tracking origin stuff but i couldn’t fix it. once again, when i start play in editor initially everything is fine, but when the node fires to re-open the level, it freezes up for a long time and then i start in the floor. i have tested on multiple levels and tried many things already but no luck.

Its not a plugin issue, I don’t handle anything specific to re-spawning anywhere. You need to run through your possession code and see whats miss-firing.

Though I do know of something close to that is caused by the splash screen system if you are using a Rift. Some of the textures can lockup the Oculus SDK and you lose tracking, I had someone run into it with the stereo layers too.

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

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