UE4 Pull Lever / Radial Switch using Physics Constraints in Unreal Engine 4 Tutorial How To

  Рет қаралды 18,232

Lusiogenic

Lusiogenic

Күн бұрын

In this free step by step Unreal Engine 4 tutorial video (UE4 how to) you will learn how to make a radial lever switch using physics constraints.
All my UE4 tutorials: • UE4 Make Rope Swing - ...
3D Models:
drive.google.c...
drive.google.c...
Light bulb setup
Blueprint: drive.google.c...
Mesh and material: drive.google.c...
Join me for Live Streams: / lusiogenic
I share stuff here: / lusiogenic
Subscribe: www.youtube.com...
#ue4 #unrealengine #gamedev

Пікірлер: 45
@BlackPara11
@BlackPara11 Ай бұрын
Every time I search for something, you drop a video from the sky, thanks!
@DeepFriedOreoOffline
@DeepFriedOreoOffline 3 жыл бұрын
This is EXACTLY what I have been looking for! I have been trying to setup making a door in VR, and I knew the base logic I needed to figure out was how to make the physics constraint work how I need it to so I don't have to worry about too much complex actions like breaking the constraints, rotating the door manually with angular math, applying a new constraint, transfering the velocity... If the door can only move in the intended direction, who cares what way the player's hand is going? This is well explained :) For the record, around 6 minutes where you are pointing out the difference in the positive and negative axis movement, I am pretty sure that is just due to the difference in world/relative axis :) You are trying to use the relative axis values available in the blueprint, and align them to the world axis in the level. Your fix is a good one though! I typically spend a few extra minutes playing with things to find the proper world rotations.
@michaelvollrath3192
@michaelvollrath3192 4 жыл бұрын
I implemented similar logic for a switch and was stuck trying to get it to snap between two points. Your method solved it for me. Thank you for this awesome tutorial!
@sergeyzhukov3796
@sergeyzhukov3796 6 жыл бұрын
WOW. This is mindblowing. So many things i can do now. Thank you , for your channel!
@domingogonzalez8283
@domingogonzalez8283 4 жыл бұрын
Great, a lots of thanks to helps us with your work. One question How to use physic constranct so that when you grab a lever it moves in the direction in which we push it as a direction control and that it returns to its central position if we do not exert pressure ..... forward, back, left, right ..... can you make a tutorial about it. Thank you.
@megtwin
@megtwin 2 жыл бұрын
I love these, they're so helpful!!
@luwinkre2371
@luwinkre2371 5 жыл бұрын
Amazing work, but I wonder if you could upload a VR version of this series?
@Lusiogenic
@Lusiogenic 4 жыл бұрын
This should work in VR, as-is. There's no special setup for that.
@BartalamBane
@BartalamBane 5 жыл бұрын
Thank you for the good lesson👍
@alekseykarpov7419
@alekseykarpov7419 2 жыл бұрын
Sorry. Could you attach KettleBellWeight or explain how to make hole in collision. I dont know how to use meshes with hole.
@petripekkarinen2559
@petripekkarinen2559 4 жыл бұрын
Great tutorials! Using this method could it be possible to attach the base of the lever to another object that is moving and rotating in the scene? How would the physics constraint work then, anything that should be done differently?
@sfefecebi
@sfefecebi 3 жыл бұрын
can you make a physical button tutorial
@robertmaxwell7350
@robertmaxwell7350 4 жыл бұрын
Thank you for the tutorial, would it be possible to configure it for more than 2 positions?
@Lusiogenic
@Lusiogenic 4 жыл бұрын
You can set up how many positions you want. You just have to make the Blueprint code for them.
@nijq
@nijq 4 жыл бұрын
Love your tutorials!!! I followed in C++ and when I grab the handle and push/pull it all the way to one side, it sometimes gets stuck (goes to sleep?) until I grab it again or collide with it. The OnConstraintBroken event does not fire. Has anyone experienced similar? im using 4.25.1
@shadesmadness4399
@shadesmadness4399 6 жыл бұрын
Would there be a way to implement this to make an actor rotate? Or activate and deactivate a physics constraint that makes an actor rotate? I've been trying to make a lever to switch a fan off and on but I'm having issues trying to get it to rotate.
@Lusiogenic
@Lusiogenic 6 жыл бұрын
Yes, it's entirely possible. Instead of turning the light bulb on and off, you turn on a physics constraint, like you said. Check this tutorial to see how to make a wheel rotate: kzbin.info/www/bejne/bZ69aouKga55j5Im32s To make it stop or start, set the Target Velocity of the physics constraint to either 0 or a value that you want. BTW, I've also done a blowing fan tutorial if you're interested: kzbin.info/www/bejne/gGrPh3R6rslrkLM
@jamesjiang9620
@jamesjiang9620 Жыл бұрын
Trying this in unreal engine 5.1 and it appears the linear limits and Angular limits are broken for me and I can't even recreate the same result in 4:48, can anyone help?
@Unknown-oc3lm
@Unknown-oc3lm Жыл бұрын
Does this work in Unreal Engine 5?
@kingofwar1422
@kingofwar1422 4 жыл бұрын
i can't send the 'use' signal to the thing i want to start a event i've followed the other video with the trebuchet but i can't figure out how i can fix it
@chandrabuana9
@chandrabuana9 5 жыл бұрын
need help here, im new in UE4, i really didnt know how you grab that liver with mouse? anybody can help me?
@Lusiogenic
@Lusiogenic 5 жыл бұрын
Check out this tutorial: kzbin.info/www/bejne/n6POZoF3qquDg8U
@fahood9242
@fahood9242 3 жыл бұрын
how would i get the player to grab the lever i know its physics handle but idk how to use it
@Lusiogenic
@Lusiogenic 3 жыл бұрын
Physics constraints can do that also: kzbin.info/www/bejne/n6POZoF3qquDg8U
@fahood9242
@fahood9242 3 жыл бұрын
@@Lusiogenic Yyoo thanks but i couldnt get mine to grab the lever. i used physics handle btw
@Lusiogenic
@Lusiogenic 3 жыл бұрын
@@fahood9242 I can only vouch for my method. Try it and see how it goes.
@fahood9242
@fahood9242 3 жыл бұрын
@@Lusiogenic igth
@sfefecebi
@sfefecebi 3 жыл бұрын
can i turn this into a button
@Albert-Freeman
@Albert-Freeman 5 жыл бұрын
Hey thanks for your tutorials... Would be great if you do one on 'how to grab objects' I have seen some but all tutorials are outdated an some nodes in blueprints to code it they just don't exist anymore and I can't find an actual good tutorial...
@Lusiogenic
@Lusiogenic 5 жыл бұрын
Already made it: kzbin.info/www/bejne/n6POZoF3qquDg8U
@WeisterXDprogrammer
@WeisterXDprogrammer 4 жыл бұрын
how to maKE this work on VR? with the hand got any idea?
@Lusiogenic
@Lusiogenic 4 жыл бұрын
This should work in VR with no modifications.
@moocows111111
@moocows111111 6 жыл бұрын
Hey again, how did you create cast to use at 10:57?
@Lusiogenic
@Lusiogenic 6 жыл бұрын
First, you need an interface, in order to have something to cast to. Then, in the blueprints, in order to make the interface appear when typing "cast", make sure that you uncheck "Context Sensitive", like I did at 10:53 .
@Lusiogenic
@Lusiogenic 6 жыл бұрын
I've shown how to create the Use functionality and the Use interface here: kzbin.info/www/bejne/m4q3ZYCPhKuSZ6Mm36s
@moocows111111
@moocows111111 6 жыл бұрын
Do you have the models for the base and handle?
@Lusiogenic
@Lusiogenic 6 жыл бұрын
Yes, I do. I don't know why I haven't posted them. I'll put them up as soon as possible.
@Lusiogenic
@Lusiogenic 6 жыл бұрын
I've uploaded the 3D models for the asset. You can find the links in the video description.
@moocows111111
@moocows111111 6 жыл бұрын
Thanks! Also you know when you go into the game after clicking play, how did you interact with the object to see if the lever is working? I cant seem to get mine to work properly. I'm quite new to unreal but your tutorial has made me understand a lot for the project that I am working on :D DD
@Lusiogenic
@Lusiogenic 6 жыл бұрын
In order to be able to grab the object using the player character, you have to implement this tutorial : kzbin.info/www/bejne/n6POZoF3qquDg8U It should work, afterwards. :)
@vrmaurice
@vrmaurice 4 жыл бұрын
5:05
@ijazahmad7077
@ijazahmad7077 5 жыл бұрын
Hi, have you implemented this lever mechanic in VR?
@ultgamercw6759
@ultgamercw6759 5 жыл бұрын
I am having a problem where my handle just keeps falling off the base. I am about five mins into the tutorial and can't find out what is wrong.
@Lusiogenic
@Lusiogenic 5 жыл бұрын
You physics constraint is probably not set up correctly or it isn't connected to the two objects. Check the name of the connected components.
@hasarangaamarathunga9279
@hasarangaamarathunga9279 3 жыл бұрын
Cast to I_use not showing
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
HOOOTDOGS
Рет қаралды 1,9 МЛН
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 13 МЛН
啊?就这么水灵灵的穿上了?
00:18
一航1
Рет қаралды 60 МЛН
Flipping Robot vs Heavier And Heavier Objects
00:34
Mark Rober
Рет қаралды 59 МЛН
How to Make a Lever for Virtual Reality with Unreal Engine
17:31
VR Playground
Рет қаралды 10 М.
If You Can't Make Games After This Video, Give Up
4:37
Fredyy
Рет қаралды 959 М.
Unreal Engine Materials in 6 Levels of Complexity
44:12
pwnisher
Рет қаралды 268 М.
I Paid Fiverr Game Developers to Make the Same Game
10:25
BadGameDev
Рет қаралды 722 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,1 МЛН
How to... Physics Constraint
5:47
Ryan Laley
Рет қаралды 24 М.
Replication | First Person Flashlight - Unreal Engine Tutorial
8:39
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
HOOOTDOGS
Рет қаралды 1,9 МЛН