Hi ,
Here is a little present for the awesome VRExpansionPlugin.
I came across another problem where I wanted to use the VRLeverComponent for and I decided to work again on it to make it rotate smoothly over the flip point. It is in a state now that I thought the VRExpansion Plugin could also make use of it, so I took my freedom to send it to you.
Below you find attached a 4.18 version of the example project just like in the video. The code additions in VRLeverComponent should just work fine also in 4.19 from what I saw. I marked every code change necessary with the comment “spaceharry” in h. and cpp file. Feel free to also use the mesh from my video in your example project.
Edit: The files here didnt have the correct version. You can find them below or later in a new version of the ExpansionPlugin soon.
Basically the lever rotation limited to yaw and pitch now works like kind of telescope and it behaves almost like it when moved by motion controller.

As of now there are two variable exposed to blueprint to take ajustments on: FlipZone and LerpOutSpeed.
FlipZone defines a zone on a sphere near where the lever would flip around its roll axis or small location changes from the motion controller would cause swirling rotational motions. As of now inside zone the lever can only increase or decrease in pitch to avoid those problems. FlipZone value can be increased to further stabilize swirlmotion or decreased to allow more yaw rotation before locking in.
LerpOutSpeed is just for lerping back to “real” motion controller location after leaving the flipzone.
I didnt need to limit the rotations axis as of now, but I surely will take a look at it. Also currently lever doesnt return to its initial position. implementation is not perfect in any sense, but still I thought that someone could use a light projector on the stair platform. ![]()
cya,
spaceharry [TABLE]
[TABLE]