How to Make a Lever for Virtual Reality with Unreal Engine

  Рет қаралды 9,921

VR Playground

VR Playground

Күн бұрын

Levers have many great use cases in virtual reality games, everything from triggering events in the world, creating puzzles, or menu interactions. In this tutorial I will show you how to build a VR lever in Unreal Engine.
// SUPPORT ME ON PATREON
/ vrplayground
// FOLLOW ME ELSEWHERE
Instagram: / vr.playground
Facebook: / virtualrealityplayground
Twitter: / playground_vr
// COME JOIN THE DISCORD
Discord: / discord
// LOOKING TO HIRE MY SERVICES?
virtualreality-playground.com
// CONTACT INFO
For business inquiries: alexander.rodriguez@virtualreality-playground.com
// CHAPTERS
0:00 Start
0:26 Create Grab and Release Interface
1:32 Setup Lever Components
4:18 Adding Rotation Movement to Lever
11:14 Grab and Release Interactions in Player
15:28 Add Lever to Scene
15:54 Test in Virtual Reality
17:13 Thanks to Patreon Supporters!

Пікірлер: 29
@TheThedaminator
@TheThedaminator 2 жыл бұрын
Finally a clean working solution, amazing !
@Ebani
@Ebani 2 жыл бұрын
Great tutorials, keep'em coming
@EthanFilms
@EthanFilms 2 жыл бұрын
YESSSSSS FINALLY!!! thank you!!
@tedats
@tedats 9 ай бұрын
Think you should double down on these tutorials man. So good.
@melih.a
@melih.a 2 жыл бұрын
no one is doing the videos you're making! this stuff is great.
@aj08coder
@aj08coder 3 ай бұрын
Thanks!
@migu1el
@migu1el 2 жыл бұрын
U're a god
@user-si1lm5gg1f
@user-si1lm5gg1f 8 күн бұрын
I followed your tutorial and managed to make the lever. However is there any way that i can rotate the lever in 2 axis (x and y). I intend to make a joystick.
@TQDomoNation
@TQDomoNation Жыл бұрын
Hi question, if i wanted to make it work without using any input actions and just actually pushing it with my controller like the button video, how would I go about that?
@Utopia2023Game2
@Utopia2023Game2 11 ай бұрын
why X roll not working as expected like pitch why is that ? @VR Playground
@rdileepkumar4898
@rdileepkumar4898 2 жыл бұрын
Can't we make with physics constraints
@katemcgee1984
@katemcgee1984 Жыл бұрын
These tutorials are amazing, thank you! I'm having trouble applying this code to the x-axis of an object. Any insight anyone might have into trouble shooting it would be greatly appreciated :)
@adamc3607
@adamc3607 Жыл бұрын
kzfaq.info/get/bejne/n5uXoNd-uL7JYHk.html&ab_channel=AdamC
@lilbon6073
@lilbon6073 Жыл бұрын
did u have any luck figuring this out?
@katemcgee1984
@katemcgee1984 Жыл бұрын
@@lilbon6073 Yes. Let me look at the old code. It ended up being slightly annoying.
@lilbon6073
@lilbon6073 Жыл бұрын
@@katemcgee1984 yeah no problem I’m gonna continue tomorrow anyways thank you
@isaacmasdefiol3126
@isaacmasdefiol3126 4 ай бұрын
Why is it not working on Unreal Engine 5?
@LaborAVirtual
@LaborAVirtual 2 ай бұрын
Everything is working until i try to release it, it doesn't work and the lever still follow my hand, i did the steps 3 or 4 times already.
@Jaydanson
@Jaydanson Жыл бұрын
If anyone has an issue with the lever being rotated, what fixed it for me was switching the CombineRotators with a break rotator connected to a make rotator with the Y (pitch) having 90 added in between. Heres an image as I suck at explaining things cdn.discordapp.com/attachments/795397999752380441/1018763422906724382/unknown.png
@LaszloIvanyi
@LaszloIvanyi 2 жыл бұрын
If you want to test in VR the only way is to package the whole thing and install on the VR headset right? There are no "virtual" hands you can use while developing to check behavior?
@vienhackar
@vienhackar 2 жыл бұрын
For the quest if you have the headset connected via Oculus Link or Air Link, you can use the VR Preview button in the Play dropdown menu. You need to load the project after you are connected via Link.
@yousefalhussiny7549
@yousefalhussiny7549 2 жыл бұрын
I followed the video as is, but I'm getting a problem, if I placed the blueprint in the scene it works fine but if I rotated it in any direction the blueprint breaks. I think it's due to using world rotation instead of relative, I'm trying to do it with relative but not working, any help?
@nathannight5396
@nathannight5396 2 жыл бұрын
I have the same problem. did you find a solution?
@adamc3607
@adamc3607 Жыл бұрын
I made a video showing how to set this up with relative rotation kzfaq.info/get/bejne/n5uXoNd-uL7JYHk.html&ab_channel=AdamC
@DarthVaderXI
@DarthVaderXI Жыл бұрын
so I have a question maybe I missed the answer but how does one get the lever pull to activate something like a door or a cannon to fire
@arthurverlaine9122
@arthurverlaine9122 Жыл бұрын
you can command it to set a boolean when gets certain angule. For example: "if has rotated 45º, set boolean to true", and use that bolean for making the rest of the code
@oculicious
@oculicious 2 жыл бұрын
Thanks for making the tutorial, but there are a lot of problems with this. It breaks as soon as you rotate the lever, it can only rotate in the world axis, and if you go beyond the 90 degree mark it freaks out
@adamc3607
@adamc3607 Жыл бұрын
kzfaq.info/get/bejne/n5uXoNd-uL7JYHk.html&ab_channel=AdamC
Two Handed Grab in Virtual Reality - Unreal Engine VR Tutorial
28:31
Grabbing Objects from a Distance in Virtual Reality!
21:16
VR Playground
Рет қаралды 6 М.
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 51 МЛН
WHAT’S THAT?
00:27
Natan por Aí
Рет қаралды 14 МЛН
Викторина от МАМЫ 🆘 | WICSUR #shorts
00:58
Бискас
Рет қаралды 4,3 МЛН
Inventory for VR Player - Unreal Engine VR Tutorial
25:26
VR Playground
Рет қаралды 6 М.
Why Solo Developers Should Use Unreal
10:55
Thomas Brush
Рет қаралды 347 М.
Using "Pressure Activated" Switches To Trigger Events In Unreal Engine 5
16:14
Inventory Wheel in Virtual Reality
18:52
VR Playground
Рет қаралды 3,5 М.
Making a VR Game in 9 Days with NO EXPERIENCE - VRJam Devlog
9:46
SnoopingTurtle
Рет қаралды 23 М.
Build User Interfaces In VIRTUAL REALITY For Unreal Engine 5
14:25
Virtus Learning Hub
Рет қаралды 66 М.
Locked Door in Virtual Reality - Unreal Engine VR Tutorial
40:27
VR Playground
Рет қаралды 14 М.
Environment Collision in Virtual Reality - Unreal Engine VR Tutorial
19:54
How to make pressable BUTTON for VR (unreal engine vr tutorial)
13:39
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 10 МЛН
Частая ошибка геймеров? 😐 Dareu A710X
1:00
Вэйми
Рет қаралды 4,1 МЛН
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 6 МЛН
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 28 МЛН
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 17 МЛН