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

<div class="post-metadata">

**Author:** ![Gnometech](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gnometech](https://forums.unrealengine.com/u/Gnometech)\
**Post date:** [May 8, 2017, 11:04pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1093 "2017-05-08T23:04:03Z")

</div>

Hey .

> [@;704471](#):
>
> 1. If you ever get around to handling like you want post me the code or pull request it and i’ll directly incorporate it. The description is simple to implement but is a request that I doubt anyone else will be looking for and I have a lot of upcoming stuff on my plate.

Sure thing. I’m now also wondering if going with a slightly delayed yaw rotation for _UParentRelativeAttachmentComponent_ would be a good way to go. And the addition of a neck model so that UParentRelativeAttachmentComponent doesn’t move forwards (and down) as the player looks down is also something I’m thinking of testing. Just trying to make it seem like there is a body there rather than feeling like there are items hanging off of the head. I’ll let you know how it goes once I get to .

> [@;704471](#):
>
> 1. Did it tonight after reading your request.

Cool beans! 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:** [May 8, 2017, 11:45pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1094 "2017-05-08T23:45:56Z")

</div>

> [@mandango;706256](#):
>
> Some thing I need to do is grab a object with the two hands, but secondary fixed in a specific position (grippable sphere for example), maybe just could be rotated for then launch a skeletal animation, not like the Gun example, moveable the second hand along the mesh.  
> On the other hand, there are a mini tutorial up to the interface cases? I’ve realized in the template, the BP\_PickupCube doesn’t neet to be “Grippable actor”, just a static mesh but with the “VRGrip Interface”, but the Gun, Potion, Door and Drawer actor is based on the Grippable base…

Grippable base is there to define the custom settings for a grip, in the template character I set a default set of gripping rules for anything that is just a simulating static mesh which originally the BP\_PickupCubes fell under. I have since converted them to inherit the interface though as an example of custom grippable bases that don’t inherit from my pre-made components / actors.

For two handed interactions you “can’t” have both hands rooted in a single position, the object would either need to scale along with their movements or one of the hands needs to be free on an axis as you can’t “constrain” VR hands to specific points as the control of them is outside of the game itself.

You however can attach the visible representation of the hand to the mesh instead so that it appears to be locked in place as most of the gun systems do in games. If instead you mean that you just want the front hand to be the pivot, you would just have to reverse the gripping roles.

I’m not entirely sure of what you are saying, if you actually mean rotate a globe in place, physically constraining it with 2 axis of movement and using two manipulation grips would work for that.

I have been considering adding another type of secondary grip that rotates objects around the center of the two hands like in the VR editor, the original implementation was primarily designed around weapons and guns. However I haven’t needed it for any interaction so far so it hasn’t been a big priority (the current rotation method around primary grip works for most cases and even provides more accuracy in movements in a lot of cases as you have a defined point of pivot).

---

<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:** [May 9, 2017, 12:43am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1095 "2017-05-09T00:43:31Z")

</div>

Updated the 4.16 template tonight, forgot that I wanted to project the controller forward vector onto the floor plane so that you don’t slow down when the controller is facing partially upwards. I meant to do awhile ago but it slipped my mind.

---

<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:** [May 9, 2017, 2:10am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1096 "2017-05-09T02:10:09Z")

</div>

> [@;700962](#):
>
> Also use the Parent Relative Attachment for hip placement, attach it to the camera, it provides a yaw only rotation base for chest / hip tracking.

If it’s ok I’d like to make sure I’m doing right. From what I’ve tested it seems only the inherited Parent Relative Attachment produces the desired behavior.

If I add a new, uninherited PRA to the VR camera w/ default transform (l:0,r:0,s:1), I’m seeing a strange problem with its transform; location of the PRA is about 100 meters above the camera, and adding an offset to any meshes or child actors parented to the PRA, it shows the PRA is ~90 degrees rotated on Z.

Should I only be using the inherited PRA?

next thing isn’t really related to the plugin specifically…

Is there a way to attach something (child actor/skeletal mesh/ static mesh) with an offset to a PRA?

Example of why: I want to translate a skeletal mesh from the motion controller back to its default offset on the holster/PRA at any time (on button press).

I think I could accomplish by parenting a dummy skeletal mesh to the PRA, and add 2 sockets to it, but it seems kinda like a hack to me.

---

<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:** [May 9, 2017, 2:42am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1097 "2017-05-09T02:42:59Z")

</div>

> [@;706314](#):
>
> If it’s ok I’d like to make sure I’m doing right. From what I’ve tested it seems only the inherited Parent Relative Attachment produces the desired behavior.
> 
> If I add a new, uninherited PRA to the VR camera w/ default transform (l:0,r:0,s:1), I’m seeing a strange problem with its transform; location of the PRA is about 100 meters above the camera, and adding an offset to any meshes or child actors parented to the PRA, it shows the PRA is ~90 degrees rotated on Z.
> 
> Should I only be using the inherited PRA?
> 
> next thing isn’t really related to the plugin specifically…
> 
> Is there a way to attach something (child actor/skeletal mesh/ static mesh) with an offset to a PRA?
> 
> Example of why: I want to translate a skeletal mesh from the motion controller back to its default offset on the holster/PRA at any time (on button press).
> 
> I think I could accomplish by parenting a dummy skeletal mesh to the PRA, and add 2 sockets to it, but it seems kinda like a hack to me.

Set the parent relative attachment to 0,0,0 relative to the camera always and 0,0,0 rotation, sounds like you added it in and it auto filled in some rotations. Also there is no reason to have multiples of it, what ever you attach to it retains its overall offset so keep one and attach multiple components to that one.

To attach something with an offset, put it where you want it and then attach it…or attach it and set its relative location. It behaves like a normal parent - child relationship except the Parent Root Attachment unrotates itself from the HMD pitch/roll.

---

<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:** [May 9, 2017, 4:00am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1098 "2017-05-09T04:00:34Z")

</div>

> [@;706324](#):
>
> sounds like you added it in and it auto filled in some rotations.

Hey, thanks a lot for the reply. That’s what I thought, but they were all default.

 ![parelatt.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/b/25b01a1d4aca04583b4ce39f8f45e6503fbd6ac7.png)

I set the relative location after attaching it, and then verified the loc/rot/scale of the PRA. The PRA transform is default (sorry I didn’t expand the rotation fully in the ss, but it is in fact 0,0,0). Sorry, when I saw your first suggestion last week, I wrongfully interpreted it as adding a new PRA to the camera. The inherited one the VR\_Character comes with works perfectly with no issue. The non-inherited ones don’t work right for me. They were good in the viewport, but bad in game (made sure all collisions on the meshes were off).

On a side, seeing that the PRA needs to have a default transform relative to the camera, from what I can tell there isn’t an “easy” way to maintain the offset because I change the parent at runtime. What I wanted to do was unparent the skel mesh from the PRA, translate it to the motion controller and reparent it to that (and vice versa), but once I unparent it from the PRA I lose the offset.

But, I accomplished exactly what I wanted by doing the following (it’s dirty):

①Created an invisible skel mesh with 1 bone and added 2 sockets to it (to serve as the offset retainers for each skel mesh’s holster rotation/location)  
②Set the invisible skel mesh as the child of the Inherited Parent Root Attachment.  
③Added 2 skel meshes as children of the invisible skel mesh (referencing its respective sockets).

Granted I’m not doing something wrong, here’s a suggestion:  
Would be cool if the Inherited PRA had 1 bone in it to which sockets could be attached.

---

<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:** [May 9, 2017, 12:42pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1099 "2017-05-09T12:42:58Z")

</div>

> [@;706341](#):
>
> Hey, thanks a lot for the reply. That’s what I thought, but they were all default.
> 
> ![parelatt.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/b/25b01a1d4aca04583b4ce39f8f45e6503fbd6ac7.png)
> 
> I set the relative location after attaching it, and then verified the loc/rot/scale of the PRA. The PRA transform is default (sorry I didn’t expand the rotation fully in the ss, but it is in fact 0,0,0). Sorry, when I saw your first suggestion last week, I wrongfully interpreted it as adding a new PRA to the camera. The inherited one the VR\_Character comes with works perfectly with no issue. The non-inherited ones don’t work right for me. They were good in the viewport, but bad in game (made sure all collisions on the meshes were off).
> 
> On a side, seeing that the PRA needs to have a default transform relative to the camera, from what I can tell there isn’t an “easy” way to maintain the offset because I change the parent at runtime. What I wanted to do was unparent the skel mesh from the PRA, translate it to the motion controller and reparent it to that (and vice versa), but once I unparent it from the PRA I lose the offset.
> 
> But, I accomplished exactly what I wanted by doing the following (it’s dirty):
> 
> ①Created an invisible skel mesh with 1 bone and added 2 sockets to it (to serve as the offset retainers for each skel mesh’s holster rotation/location)  
> ②Set the invisible skel mesh as the child of the Inherited Parent Root Attachment.  
> ③Added 2 skel meshes as children of the invisible skel mesh (referencing its respective sockets).
> 
> Granted I’m not doing something wrong, here’s a suggestion:  
> Would be cool if the Inherited PRA had 1 bone in it to which sockets could be attached.

The PRA doesn’t need a relative transform from the camera, the PRA is intended to be a proxy camera that you can set things relative to instead, it also does’t need sockets, you can store direct relative transforms to it instead or just a plain scene component if you want an object to pull a location from.

For example, if you add a holster at X:100 Y:0 Z:0 on the PRA it will float 100 units in front of you at all times. If you want to lerp something into place without problems when rotating then attach it on release to the PRA, and lerp it over time to the holster location IN RELATIVE SPACE not world space, that way it still rotates with you so you can’t just spin in circles to prevent it ever reaching its target (Lerp from current relative location to holsters relative location).

If your location is different when de-taching then you need to consider world space when moving the object to the hand, as soon as you detach the object it is no longer in relative space to the PRA but to either its new parent or the world so if you are using a stored variable then it is wrong, so either lerp to the hand in world space, or convert the location prior to detach to relative to the skeletal meshes new parent and lerp in there or do like the above and lerp it in relative space to the PRA and only once it is within a radius of your intended location do you attach it to the new parent (probably best for the same reasons as above, handles body rotation better, lerp from current relative position to controllers WorldTransform.GetRelativeTransform(PRA-\>ComponentTransform)).

The problem isn’t the PRA’s behavior, you appear to be thinking about how to achieve your desired effect slightly incorrectly.

---

<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:** [May 10, 2017, 2:45am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1100 "2017-05-10T02:45:12Z")

</div>

> [@;706528](#):
>
> The PRA …does’t need sockets, you can store direct relative transforms to it instead or just a plain scene component if you want an object to pull a location from.

You’re right, I was going about it the wrong way using bones. Adding scene components seems to be the cleanest of the two ways of achieving what I want, sans the skeletal mesh. Sorry for wasting your time, but thanks a lot for all the info!

---

<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:** [May 11, 2017, 12:18am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1101 "2017-05-11T00:18:07Z")

</div>

Pushed most of my recent work over into the plugins 4.16 branch, patch notes are below

```auto

Changed VRGripInterface events to better allow for c++ overrides
(from BlueprintImplementableEvent to BlueprintNativeEvent)

Changed secondary grip bAllowSecondaryGrip into an enum with different types **(WILL REQUIRE BP CHANGES)**
+	SG_None, // No secondary grips
+	SG_Free, // Can secondary grip anywhere
+	SG_SlotOnly, // Can only secondary grip at a slot
+	SG_FreeWithScaling, // With scaling
+	SG_SlotOnlyWithScaling // With scaling

Added prelim secondary grips with scaling (needs more work, but functional).

SlotOnly and Free types are for the users convienance for checking prior to
calling AddSecondaryGrip. (VRTemplate updated to do ).

Changed the build.cs to place a lot more of the Dependancy modules into
private includes instead of public.

Added a VRLogComponent, can be used to render to texture either the console
or the ouput log so that they can be visible and useable in VR.

Also contains functions for passing keyboard and command input into the console
without a keyboard (Template now has an example of component).

```

---

<div class="post-metadata">

**Author:** ![arniecank](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arniecank](https://forums.unrealengine.com/u/arniecank)\
**Post date:** [May 11, 2017, 3:17am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1102 "2017-05-11T03:17:58Z")

</div>

Hi firstly what amazing work. I’m doing a short climate change animation for kids 10-13yrs with the main character (a lemming) will be played by my wife. I want to combine your VR character setup and blend it with Kinect to give my wife an immersive Actor experience to portray the lemming.

My question  
I am getting an error message at the startup of the plugin and also after right-click on files execution, and compile. It still doesn’t work.

Can anyone assist, i am a noob with unreal but i definitely want to learn it by doing so i can use it to tackle global issues.

For help a video tutorial would be helpful.

I’ll definitely show the result when done and credit the developer 🙂

---

<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:** [May 11, 2017, 3:23am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1103 "2017-05-11T03:23:04Z")

</div>

> [@arniecank;707377](#):
>
> Hi firstly what amazing work. I’m doing a short climate change animation for kids 10-13yrs with the main character (a lemming) will be played by my wife. I want to combine your VR character setup and blend it with Kinect to give my wife an immersive Actor experience to portray the lemming.
> 
> My question  
> I am getting an error message at the startup of the plugin and also after right-click on files execution, and compile. It still doesn’t work.
> 
> Can anyone assist, i am a noob with unreal but i definitely want to learn it by doing so i can use it to tackle global issues.
> 
> For help a video tutorial would be helpful.
> 
> I’ll definitely show the result when done and credit the developer 🙂

You’ll need to build it in visual studio, I only have pre-packaged binaries for 4.15.2 at the moment. The plugin page has a short TODO for installation and setup (should probably be an image based step by step I guess).

---

<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:** [May 11, 2017, 11:46am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1104 "2017-05-11T11:46:05Z")

</div>

I’m probably gonna get hanged for asking …I couldn’t find specific info on it in thread.

## tl;dr What’s the easiest way to implement only the climb ability on a blank VR\_Character?

I realize all of the info is already provided, but I lack experience and so am having troubles making sense of it.

I started using a blank VR\_Character. Now I’d like to implement climbing into it, rather than migrate it over to the Vive\_Pawn\_Char.

I want to enable climbing/grabbing on **static** objects only.

On a blank VR Char, currently I got it set up to where the player can press the thumbpad to equip/unequip each respective hand. The grips/triggers function differently depending on the thing equipped. When nothing is equipped in a hand, then I want to allow the climb ability on that hand.

The Vive\_Pawn\_Character in the template project has awesome climbing. From what I can tell, it looks like I just need to, copy some functions out of it, and their corresponding vars, and hook them up to the motion controllers in my character to work, in addition to adding a sphere collision component to each MC. But, I’m worried that’s not all.

I was hoping I could get a heads up on what’s required for getting climbing going in a blank VR\_Character.

Sorry if has already been covered.

---

<div class="post-metadata">

**Author:** ![arniecank](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arniecank](https://forums.unrealengine.com/u/arniecank)\
**Post date:** [May 11, 2017, 12:29pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1105 "2017-05-11T12:29:37Z")

</div>

Will try 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:** [May 11, 2017, 12:47pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1106 "2017-05-11T12:47:41Z")

</div>

> [@;707516](#):
>
> I’m probably gonna get hanged for asking …I couldn’t find specific info on it in thread.
> 
> ## tl;dr What’s the easiest way to implement only the climb ability on a blank VR\_Character?
> 
> I realize all of the info is already provided, but I lack experience and so am having troubles making sense of it.
> 
> I started using a blank VR\_Character. Now I’d like to implement climbing into it, rather than migrate it over to the Vive\_Pawn\_Char.
> 
> I want to enable climbing/grabbing on **static** objects only.
> 
> On a blank VR Char, currently I got it set up to where the player can press the thumbpad to equip/unequip each respective hand. The grips/triggers function differently depending on the thing equipped. When nothing is equipped in a hand, then I want to allow the climb ability on that hand.
> 
> The Vive\_Pawn\_Character in the template project has awesome climbing. From what I can tell, it looks like I just need to, copy some functions out of it, and their corresponding vars, and hook them up to the motion controllers in my character to work, in addition to adding a sphere collision component to each MC. But, I’m worried that’s not all.
> 
> I was hoping I could get a heads up on what’s required for getting climbing going in a blank VR\_Character.
> 
> Sorry if has already been covered.

The character has the climbing movement type built in at the core classes so that networking works correctly. So yes, actually all you really need to do is handle the few blueprints I setup to tell it what to do.

The climbing movement doesn’t track things itself, it takes a direct movement that you pass in to it and makes sure that it is replicated correctly and turns on/off at times that would prevent hitching. You can pass in things like sliding down a ladder / zip line to it as well.

Just check for overlap / trace when going for a climbing grip and make sure the hit object is static, then you can record the grip position relative to that object, and each tick afterwards pass in the inverse of the difference from that first spot into the climbing movement modes direct movement which should move the hand back into the original position again.

On release you just end climbing movement which sets falling, the character also has a seperate ClimbingStepUpHeight variables that defines how far down you have to reach to be considered as a valid step up during climbing, values of 0 or negative should stop stepping up entirely if that is your wish.

---

<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:** [May 11, 2017, 10:57pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1108 "2017-05-11T22:57:54Z")

</div>

> [@chancemcd;707749](#):
>

Such requests are better left to PM, send me a message there and if you wouldn’t mind deleting that post too.

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:** [May 12, 2017, 12:20am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1109 "2017-05-12T00:20:05Z")

</div>

Pushed a new commit to the repository and updated the template for the new changes

```auto

Made all grippables replicate their grip settings by default now with
an optional boolean to turn it off.
Tested new scaling grips in a network enviroment (mostly functional).

```

Going over the changes as they are fairly visual

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/1/891113d65f609c810b5d33991df018986a88c317.jpeg "Scaling grip changes") ](https://www.youtube.com/watch?v=u0swW7Yqrtg)

---

<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:** [May 12, 2017, 3:52am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1110 "2017-05-12T03:52:31Z")

</div>

> [@;707546](#):
>
> …actually all you really need to do is handle the few blueprints I setup to tell it what to do.

Sorry, I’m not sure what you were referring to with “the few”. Checking out the reference viewer for the Vive\_Pawn\_Character BP you made, seems the only blueprints I need to muck with is the very VRCharacter one my character is based off of, and the Anim BPs for each hand, no?

> [@;707546](#):
>
> The climbing movement doesn’t track things itself, it takes a direct movement that you pass in to it and makes sure that it is replicated correctly…

Got it. So climbing movement is ultimately controlled by feeding in vectors (“direct movement”?) to the Add Custom Replicated Movement node on Tick _after_ having enabled climbing via the Set Climbing Mode node, yeah?

Since it takes in the VR Movement Component, is it correct to assume turning Set Climbing Mode ON overrides the Engine-based movement mode (the one with walking, flying, falling)?

> [@;707546](#):
>
> …and turns on/off at times that would prevent hitching. You can pass in things like sliding down a ladder / zip line to it as well.

I’m confused about the “turns on/off at times that would prevent hitching.” part. Maybe something to do with momentum preservation? The ladder and zip line part is awesome. Is there already an example of in the template? I didn’t notice one in the 4.15.1 version. I’m curious to see how you’d do it.

> [@;707546](#):
>
> Just check for overlap / trace when going for a climbing grip and make sure the hit object is static, then you can record the grip position relative to that object, and each tick afterwards pass in the inverse of the difference from that first spot into the climbing movement modes direct movement which should move the hand back into the original position again.

Thanks a lot for explaining exactly how it works. You make it sound easy. Btw, should I avoid climbing on huge landscapes?

---

<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:** [May 12, 2017, 12:37pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1111 "2017-05-12T12:37:59Z")

</div>

> [@;707939](#):
>
> Sorry, I’m not sure what you were referring to with “the few”. Checking out the reference viewer for the Vive\_Pawn\_Character BP you made, seems the only blueprints I need to muck with is the very VRCharacter one my character is based off of, and the Anim BPs for each hand, no?
> 
> Got it. So climbing movement is ultimately controlled by feeding in vectors (“direct movement”?) to the Add Custom Replicated Movement node on Tick _after_ having enabled climbing via the Set Climbing Mode node, yeah?  
> \*\*  
> Yup, and then queues that custom movement vector in the SavedMovement queue that is sent to the server for playback\*\*
> 
> Since it takes in the VR Movement Component, is it correct to assume turning Set Climbing Mode ON overrides the Engine-based movement mode (the one with walking, flying, falling)?
> 
> **Yes, the reason it is a custom node is because it is setting CustomMovementMode to my enum value for climbing so that the movement component knows what to do with it. There is room for additional movement modes in there but honestly the climbing setup handles most of it.**
> 
> I’m confused about the “turns on/off at times that would prevent hitching.” part. Maybe something to do with momentum preservation? The ladder and zip line part is awesome. Is there already an example of in the template? I didn’t notice one in the 4.15.1 version. I’m curious to see how you’d do it.
> 
> **Thats all handled on the back end, movement mode changes should replicate themselves but I wanted to enforce people not trying to RPC a movement mode change to the server as that can cause out of sync issues with the saved move playback.  
> Ladder and zip line would just be entering climbing mode and then passing in a motion value along the length of the object you are trying to follow. Could also be used for something like swing or grapple hooks.**
> 
> Thanks a lot for explaining exactly how it works. You make it sound easy. Btw, should I avoid climbing on huge landscapes?
> 
> **If using a landscape I would stop using a relative position to the object and just pass in world coordinate changes as there is no need to “follow” an object then. But no, shouldn’t be any limitation there.**

minimum char length here

---

<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:** [May 12, 2017, 4:15pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1112 "2017-05-12T16:15:05Z")

</div>

Pushed a new commit to the plugin, (rather important if you are doing multiplayer).

```auto

Removed custom NetSerialize functions on all structs except for the ReplicatedPos
struct (as that changes every send anyway and needs to full rep).

I was unaware that setting a custom NetSerialize prevented the delta serialization of
structs from working. After network profiling however appears to be the case, I had assumed
that NetSerialize covered initial and full serialization only.

Re-worked how the OnRep of the gripped array's detects significant changes to
a grip that require re-initilization. Now that delta is working again the
previous array value that gets passed in is of the previous delta, not the previous array.

Because of I had to move to caching important values and cross checking them with the new
replicated values instead.

Set all grippable components back to the default of bReplicates = false. On these
the VRGripInterfaceSettings will not replicate unless you set the component to replicate. 
makes more sense, and the grippable actors themselves which default to bReplicates = true
auto replicate their VRGripInterfaceSettings.

Set position and rotation to not replicate on the VRCamera and GripMotionControllers unless
either has changed. doesn't do much when in VR as they pretty much always change. However
when testing with FPS pawns is a bandwidth savings.

```

---

<div class="post-metadata">

**Author:** ![Dazvolt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dazvolt](https://forums.unrealengine.com/u/Dazvolt)\
**Post date:** [May 13, 2017, 11:21am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/1113 "2017-05-13T11:21:23Z")

</div>

Hey , I’m trying to get your template working and there is an issue. I can’t compile files in template for… well, I don’t know for what reason, it gives an error

> [@](#):
>
> “VRExpPluginExample could not be compiled. Try rebuilding from source manually.”.

Okay, after that I tried to use compiled version, but no luck. I suppose it’s because it’s compiled for 4.15.2 while template is for 4.16… It gives errors:

> [@](#):
>
> Running C:/Program Files/Epic Games/UE\_4.15/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“U:/-vrexppluginexample-42323fc8d8ec/-vrexppluginexample-42323fc8d8ec/VRExpPluginExample.uproject” -game -rocket -progress  
> Discovering modules, targets and source code for project…  
> Messages while compiling U:-vrexppluginexample-42323fc8d8ec-vrexppluginexample-42323fc8d8ec\Intermediate\Build\BuildRules\VRExpPluginExampleModuleRules.dll:  
> u:-vrexppluginexample-42323fc8d8ec-vrexppluginexample-42323fc8d8ec\Source\VRExpPluginExample\VRExpPluginExample.Build.cs(7,58) : error CS1729: ‘UnrealBuildTool.ModuleRules’ does not contain a constructor that takes 1 arguments  
> u:-vrexppluginexample-42323fc8d8ec-vrexppluginexample-42323fc8d8ec\Source\VRExpPluginExample.Target.cs(8,55) : error CS1729: ‘UnrealBuildTool.TargetRules’ does not contain a constructor that takes 1 arguments  
> u:-vrexppluginexample-42323fc8d8ec-vrexppluginexample-42323fc8d8ec\Source\VRExpPluginExample.Target.cs(11,9) : error CS0103: The name ‘ExtraModuleNames’ does not exist in the current context  
> u:-vrexppluginexample-42323fc8d8ec-vrexppluginexample-42323fc8d8ec\Source\VRExpPluginExampleEditor.Target.cs(8,61) : error CS1729: ‘UnrealBuildTool.TargetRules’ does not contain a constructor that takes 1 arguments  
> u:-vrexppluginexample-42323fc8d8ec-vrexppluginexample-42323fc8d8ec\Source\VRExpPluginExampleEditor.Target.cs(11,9) : error CS0103: The name ‘ExtraModuleNames’ does not exist in the current context  
> UnrealBuildTool Exception: ERROR: UnrealBuildTool encountered an error while compiling source files

So I’m sitting here like

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/e/0/ce078a795d5637be36277046f06d527ae11c4581.jpeg)  
Can you please help, what can I do to run template and look at your awesome work?

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

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