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

<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 21, 2017, 3:51pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1002 "2017-04-21T15:51:15Z")

</div>

> [@michaelwbell;697967](#):
>
> Hello ! I have a question about VR Character. Would it be possible for users to set the VRCharacter to move the root as well?  
> If I am correct, when anything is attempting to get the world location/forward vector of the VRCharacter, it can’t just generically get the actor’s location, it needs to cast specifically to VRCharacterPawn and get the VRLocation/VRForwardVector.
> 
> If people want to avoid , is the only real option to use the VR Simple Character instead?

There would be no point to VRCharacter moving the root, it would be the same as SimpleVRCharacter then (and lose a couple of features like bWalkingCollisionOverride and the capsule head offset).

I will note that most VR setups in engine (including epics) have that same Actor location limitation that VRCharacter does, Simple character, while it solves that can’t use those two specific extra features.

Also the Simple character doesn’t rotate the actor anyway, you would still need to use the VRForwardVector.

_Edit_ I may look into an optional camera to actor rotation for the simple character, however it will break some things like epics teleport system and their chaperone component.

---

<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:** [April 21, 2017, 4:17pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1003 "2017-04-21T16:17:36Z")

</div>

Is there a way to disable the step up on feature? I love the climbing and grip systems but would like to disable stepping up on the stuff you are climbing and make the player do it the old fashioned way ;D

---

<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 21, 2017, 4:25pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1004 "2017-04-21T16:25:51Z")

</div>

> [@MagusShade;698018](#):
>
> Is there a way to disable the step up on feature? I love the climbing and grip systems but would like to disable stepping up on the stuff you are climbing and make the player do it the old fashioned way ;D

You mean like have to throw themselves up onto stuff?

Set the climbing step up height to 0.0f. That should make it impossible to actually be able to step up while climbing, that value is " height for step up" so at 0.0f you can never actually step up unless its a flat plane with you.

96.0f or so would let them step up from waist height on the other hand.

---

<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:** [April 21, 2017, 4:43pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1005 "2017-04-21T16:43:37Z")

</div>

where is the climbing step up height variable located? I was looking in Vive\_PawnCharacter but i couldn’t find 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:** [April 21, 2017, 4:45pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1006 "2017-04-21T16:45:06Z")

</div>

> [@MagusShade;698035](#):
>
> where is the climbing step up height variable located? I was looking in Vive\_PawnCharacter but i couldn’t find it

```php
	// Height to auto step up
	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|Climbing")
		float VRClimbingStepHeight;

```

Its in the movement component

---

<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:** [April 21, 2017, 4:45pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1007 "2017-04-21T16:45:55Z")

</div>

> [@;698037](#):
>
> ```php
> // Height to auto step up
> UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|Climbing")
> float VRClimbingStepHeight;
> 
> ```
> 
> Its in the movement component

Thank you!

---

<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 21, 2017, 7:19pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1008 "2017-04-21T19:19:03Z")

</div>

> [@alltrueist;697919](#):
>
> I had tried using the parentRelativeAttachment before, and would love to use it, but the issue for me is that I need to drive the base body movement from the pelvis and not the head. Otherwise my IK looks funky because when I rotate my head the whole underlying animation is rotated.
> 
> I tried adding an extra parentRelativeAttachment component besides the inherited one, and attaching it beneath my pelvis tracker in hopes that it would use that as the parent, but it still seems tied to the HMD as the parent. Is there any way to make it accept any parent rather than just HMD? I think if I could have the pelvis tracker as parent it would work well for my body tracking setup.

Mmm, actually think I have a workable solution already, i’ll mount up a test tonight and do a video about it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a651e6ab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a651e6ab](https://forums.unrealengine.com/u/anonymous_user_a651e6ab)\
**Post date:** [April 21, 2017, 7:23pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1009 "2017-04-21T19:23:09Z")

</div>

Awesome Plugin. I’ve watched all of your videos, huge fan, but I cant for the life of me figure out how to get it to work. I’ve downloaded the files and I’ve updated everything on my UE4.14. Anyone have a video tutorial about the download process?

Side Note: I’m a 3D designer that’s just starting in UE4 so my coding background is not as robust as many of the people on the forums; I’m thinking that’s why I’m having such a hard time just launching the project. A Video or Screenshots would be super helpful to get me started.

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:** [April 22, 2017, 1:37am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1010 "2017-04-22T01:37:29Z")

</div>

Yeah, here is a video featuring “some” of the new stuff (whatever I could remember at the time) and the waist tracking I added in today.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/1/dd1677859b5b71478175b8d1e9a84fef3fd40137.jpeg "UE4 VR Plugin new things, talking about working on it") ](https://www.youtube.com/watch?v=g2R-9c3HXQA)

---

<div class="post-metadata">

**Author:** ![MagicBots](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MagicBots](https://forums.unrealengine.com/u/MagicBots)\
**Post date:** [April 22, 2017, 5:02am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1011 "2017-04-22T05:02:30Z")

</div>

> [@;698112](#):
>
> Mmm, actually think I have a workable solution already, i’ll mount up a test tonight and do a video about it.

Awesome! Thanks for the video, and the update looks super helpful. Is that already released? Capsule movement off of pelvis would be amazing. Then I can remove my hacks altogether.

One thing I was wondering… I’m finding that with 5 trackers per player, plus controllers, it’s starting to be quite a bit to replicate, and I was wondering if it would be possible to add an option to the components to quantize the transforms for the trackers/controllers to reduce the replicated data. Before switching to your plugin, I was quantizing the transforms for replication and it made a pretty big impact, but even with that, I find your plugin replication (w/o quantizing) faster than the blueprint replication.

---

<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 22, 2017, 12:30pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1012 "2017-04-22T12:30:16Z")

</div>

The plugin already quantizes the vectors and compresses the rotations to shorts prior to replication. However I did go in yesterday to clean it up a bit and set it up so the quantization level could be configurable instead of just whatever default I use. I have it defaulted to 100/2 decimals of accuracy and 10/1 should be enough for mm level accuracy. Technically with only replicating the relative pos within the tracked space I can also provide an extreme mode that reduces it even farther.

Also there is a replication speed setting on all of the plugin replicated objects that you can reduce below the default 100 htz (at 90 fps will trigger every frame) there is naive smoothing that you can turn on that will lerp in between updates at lower htz settings. The smoothing needs rate balancing and some additional checks but since you are working with so much data I guess now would be a good time to take a look at that again.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4f284332](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4f284332](https://forums.unrealengine.com/u/anonymous_user_4f284332)\
**Post date:** [April 23, 2017, 8:40am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1013 "2017-04-23T08:40:51Z")

</div>

Hi

Thanks for the update and appreciate your hard work. Need a small help with opening drawers. Since i am not a blue print expert i am using your template and replacing the mesh in your blueprint class the achieve the same effect. but when i run in HTC as soon as i grab the drawer it updates to the previous position of the drawer. How can i change .

Thanks in Advance

regards  
J

---

<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 23, 2017, 11:48pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1014 "2017-04-23T23:48:52Z")

</div>

> [@Jomax3d;698616](#):
>
> Hi
> 
> Thanks for the update and appreciate your hard work. Need a small help with opening drawers. Since i am not a blue print expert i am using your template and replacing the mesh in your blueprint class the achieve the same effect. but when i run in HTC as soon as i grab the drawer it updates to the previous position of the drawer. How can i change .
> 
> Thanks in Advance
> 
> regards  
> J

In the interaction settings for the drawer component you need to change the Initial location and min / location values. That is how the non physics drawers know when and where to start / stop movement.

If you changed the mesh and location it will have the wrong settings for those.

---

<div class="post-metadata">

**Author:** ![Sleeper\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sleeper\_1](https://forums.unrealengine.com/u/Sleeper_1)\
**Post date:** [April 24, 2017, 11:27am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1015 "2017-04-24T11:27:20Z")

</div>

What is the best way to lean over a table to pick something up? Currently the table collision is preventing me from leaning over.

---

<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 24, 2017, 12:21pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1016 "2017-04-24T12:21:18Z")

</div>

> [@Link\_AJ;699000](#):
>
> What is the best way to lean over a table to pick something up? Currently the table collision is preventing me from leaning over.

Several options

1. WalkingOverride on the table and handle how much depth you want before pushing them back out or however you want to deal with it.

2. Inset player collision on tables

3. Don’t run player collision at all on tables, there really isn’t a point to it, if you want to stand on them then the floor finding still works with the walking collision override.

4. Waist tracker…least useful method as it depends on additional hardware (but has best results obviously)

Tables aren’t exactly a “solvable” issue collision wise with HMD + Hands, a lot of people are letting freewalk though things like tables and then teleporting the player out if the overlap goes over a set distance (with warning), but that only works for leaning if the player chooses to lean, they are free to just walk into the object to the extent you set anyway, so at that point why even bother with the faked lean mechanic and not just turn off table collision with the player?

Just like all gamedev, VR is currently a series of hacks and tradeoffs to get what you want.

---

<div class="post-metadata">

**Author:** ![Sleeper\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sleeper\_1](https://forums.unrealengine.com/u/Sleeper_1)\
**Post date:** [April 24, 2017, 2:39pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1017 "2017-04-24T14:39:58Z")

</div>

Thanks for the idea’s, yeah it’s all about finding the right way to fake the desired effect. I think I’ll just disable the collision for the player on the table.

---

<div class="post-metadata">

**Author:** ![EspireMike](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/espiremike/32/1155389_2.png) [@EspireMike](https://forums.unrealengine.com/u/EspireMike)\
**Post date:** [April 25, 2017, 3:45am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1018 "2017-04-25T03:45:19Z")

</div>

Hi again ! I have been trying to switch a pawn from being a child of VRCharacter to being a child of VRSimpleCharacter.

The one issue I have is the components (VRSceneComponent, VRReplicatedCamera, etc) are not parented to each other correctly after the switch. it is not possible to reorder them.  
Would be fixed if I tried to specify attachments in the VRSimpleCharacter class? I saw a thread with a similar issue:  
[https://answers.unrealengine.com/questions/244955/reordering-inherited-components.html](https://answers.unrealengine.com/questions/244955/reordering-inherited-components.html)  
Appreciate any pointers!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4f284332](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4f284332](https://forums.unrealengine.com/u/anonymous_user_4f284332)\
**Post date:** [April 25, 2017, 4:26am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1019 "2017-04-25T04:26:53Z")

</div>

> [@;](#):
>
> In the interaction settings for the drawer component you need to change the Initial location and min / location values. That is how the non physics drawers know when and where to start / stop movement.
> 
> If you changed the mesh and location it will have the wrong settings for those.

Thank you very much morendral.

---

<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 25, 2017, 1:03pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1020 "2017-04-25T13:03:55Z")

</div>

> [@michaelwbell;699343](#):
>
> Hi again ! I have been trying to switch a pawn from being a child of VRCharacter to being a child of VRSimpleCharacter.
> 
> The one issue I have is the components (VRSceneComponent, VRReplicatedCamera, etc) are not parented to each other correctly after the switch. it is not possible to reorder them.  
> Would be fixed if I tried to specify attachments in the VRSimpleCharacter class? I saw a thread with a similar issue:  
> [https://answers.unrealengine.com/questions/244955/reordering-inherited-components.html](https://answers.unrealengine.com/questions/244955/reordering-inherited-components.html)  
> Appreciate any pointers!

Mmmm, I went in and based the two characters on the same BaseVRCharacter awhile back to make it easier to do just (so I could make BP for VRCharacter and just copy as Simple to save me time). However it does throw an assert in code (about parent relationships) that I just ignore since I run from Visual Studio that may be blocking you attempting to do the same thing in just the editor.

Open visual studio, change the top from Development With Editor to Debug With Editor, press f5, wait for the editor to load, re-parent the BP class again and when it asserts hit continue in the popup box. The conversion should work fine, its just being overzealous about it.

I’ll note though, that if you are doing to save time with AI dealing with player location (I assume that is the problem?) that its probably not actually worth it. Simple character is missing the walking override that you may want and the neck offset, it also isn’t currently rotating the base character only translating it. There are ways around AI by using an aim location offset by the capsule for instance.

Even RoboRecall is checking if the aimed target is a VR character and if so is using the camera location instead of actor location, some times casting is fairly necessary.

_Edit_ I will also note that the VRCharacter “Should” be returning the correct location for pathing too, its target point is overridden in the code.

_Edit2_ Should I make a custom AI Controller to handle the VRCharacters? It would be really easy to do and could just be set as the controller for AI then and it would handle my VRCharacters and SimpleVRCharacters natively then.

_Edit3_ Don’t want more posts - Already made a custom AI Controller that checks for VR characters and adjusts facing rotation and line of sight to checks. Can’t find anything else in there that really needs an override.

---

<div class="post-metadata">

**Author:** ![MagicBots](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MagicBots](https://forums.unrealengine.com/u/MagicBots)\
**Post date:** [April 25, 2017, 2:10pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1021 "2017-04-25T14:10:59Z")

</div>

> [@;698368](#):
>
> The plugin already quantizes the vectors and compresses the rotations to shorts prior to replication. However I did go in yesterday to clean it up a bit and set it up so the quantization level could be configurable instead of just whatever default I use. I have it defaulted to 100/2 decimals of accuracy and 10/1 should be enough for mm level accuracy. Technically with only replicating the relative pos within the tracked space I can also provide an extreme mode that reduces it even farther.
> 
> Also there is a replication speed setting on all of the plugin replicated objects that you can reduce below the default 100 htz (at 90 fps will trigger every frame) there is naive smoothing that you can turn on that will lerp in between updates at lower htz settings. The smoothing needs rate balancing and some additional checks but since you are working with so much data I guess now would be a good time to take a look at that again.

An option to toggle the quantization level would be great to have. Thanks for pointing me to the replication speed setting and smoothing. I hadn’t seen those. I switched to 50 hz plus smoothing and that was enough to fix the network hitching I was seeing client side with my testing setup of just two players with 3 trackers each. Smoothing wasn’t noticeable. The extreme mode sounds interesting. Curious what you would plan on using there?

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

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