UE4 Swinging Door Hinged using Physics Constraints in Unreal Engine 4 Tutorial How To

  Рет қаралды 27,288

Lusiogenic

Lusiogenic

Күн бұрын

Пікірлер: 52
@johndoes2143
@johndoes2143 6 жыл бұрын
Hey, at 8 min: Dont rotate the constraint or the panel mesh, just add in the constraint an angular rotation offset on Z axis of 45 degrees, and angular motor target orientation -45 ( or 45, doesnt matter) on Z axis. Works the same way and ignore the pivot problem. End of video after that :D Anyway thanks again for the tutorial!
@Lusiogenic
@Lusiogenic 6 жыл бұрын
Yes, you're right. I don't know why I didn't do that, because I knew about the rotation offset. Thanks for pointing it out! BTW, I don't understand why there isn't an offset for the position, also.
@VlatkoDojchinoski
@VlatkoDojchinoski 6 жыл бұрын
How can you access angular rotation offset in blueprints? I want my door to have offset 0 at first, and after opening with the key, change limit do 60 and offset to -60 for example?
@Sloot786
@Sloot786 5 жыл бұрын
Is it possible to add some weight to the door (i.e., make it so the character can't just blast right through it, swinging it open violently)?
@zeon3d755
@zeon3d755 4 жыл бұрын
Very useful! I'm trying to figure out how would you setup a door if you are entering the house the door swings inward and swings back to close, if you are exiting the house the door swings outward and swing back close? So the door needs to ONLY swing once to close.
@juanmilanese
@juanmilanese 4 жыл бұрын
I have a question regarding physics based doors. You can target a specific component in a BP (ej, the door handle) and still simulate physics in the rest of the door? How would you go about doing something like that? I'm having problems with that, you can't implement an interface for a component inside a blueprint right? it implements in the whole actor. So the question would be... how can you restrict interacting with a specific component and make that component modify another component also using physics in the same BP? Practical examples could be, anything with handles or Levers , a door, opening a window, rotating a crank etc.
@JAMbosco
@JAMbosco 2 жыл бұрын
Thank you so much ! Much appreciated
@thiagodziedzic5718
@thiagodziedzic5718 6 жыл бұрын
This was exactly what i wanted tyvm!!!! Amazing vid
@Comrade_Lenin1917
@Comrade_Lenin1917 9 ай бұрын
Hello, I know this video is 5 years old, but could you please explain how you made the door so stable? In my case, the door rotates but also swings up and down and side to side, and it doesn't seem to be on a solid axis. I'm using grabbing via a physics handle, but I also tried using a physics constraint, and the result is the same.
@TaylorGSquared
@TaylorGSquared Жыл бұрын
Thanks bruv!!
@rifat.ahammed
@rifat.ahammed 2 жыл бұрын
Thanks
@arielshtern4125
@arielshtern4125 4 жыл бұрын
Worked perfectly, thanks!
@DAVELEAP
@DAVELEAP 5 жыл бұрын
Hi Andre. Thank you for your precious tutorials. I have a question about a cat hinge door I've done following this tuto. It's a door rotating vertically and it has to open when the cat pushes it with its body. But when it goes through the door it's just like if it smashes it : the door open very quickly. Even if I approach pixel by pixel. Then if I stay under the open panel and I go back, it releases slowly, following the contact of my character, just like it has to be. If you (or some of your followers) can help me, that would be very nice.
@Lusiogenic
@Lusiogenic 5 жыл бұрын
That could be either because your character has a push force that is too great (check the character setup) or because the constraints are not set up properly. I would have to see a video of that to figure out why.
@VlatkoDojchinoski
@VlatkoDojchinoski 6 жыл бұрын
Perfect tutorial ( and all other on your channel! ) I have question: Is there anyway that you can make the object rotate but the view camera not since this is working with input axis? I'm trying to do amnesia style door, with physical door, in that way you can click and drag to open the door, but only the door is rotating and not the whole screen? Thank you, and thank you for tutorial once again.
@Lusiogenic
@Lusiogenic 6 жыл бұрын
Thanks! Yes, you can do that. When you want to rotate the door, you have to disable the mouse input for the character (InputAxis Turn and InputAxis LookUp). Then, you send those movements of the mouse to the door object, using get and set functions. With those values, you then change the rotation of the door. When you stop using the door, you have to re-enable the movements of the mouse for the character.
@VlatkoDojchinoski
@VlatkoDojchinoski 6 жыл бұрын
@@Lusiogenic tnx a lot !
@ClemKlootShoops
@ClemKlootShoops 5 жыл бұрын
great tutorial mate
@urmcchromez9426
@urmcchromez9426 3 жыл бұрын
how do we make it so you have it swing open and stop, so it remains open until you actually put it back in place?
@megtwin
@megtwin 4 жыл бұрын
Could you please outline what all the collision settings are on each object? Mine keep going crazy.
@EminorReal
@EminorReal 6 жыл бұрын
Thanks for this video friend.
@franman51
@franman51 3 жыл бұрын
How would you apply Physics Constraint to a pinball flipper? So when a user pushes a button the flipper springs up by 60 degrees and when the button is released, the flipper returns back to its original orientation.
@Lusiogenic
@Lusiogenic 3 жыл бұрын
See this tutorial: kzbin.info/www/bejne/pna1p4Coic1qitk
@nathansmiddy
@nathansmiddy 6 жыл бұрын
Hi, The issue I'm having with doors are from the marketplace, the doors I got never have a BP that allows it to open and close and I don't like been made into having to use the starter content doors for my horror project game!
@Lusiogenic
@Lusiogenic 6 жыл бұрын
I'm not sure I understand your question. This tutorial should apply to any mesh. You can use the door mesh from the content examples.
@OBrobzero
@OBrobzero 6 жыл бұрын
HI, I'm not sure where I'm going wrong. When I run into the door in VR it just gets knocked over. I can't seem to get it to stay in one place and turn on the axis. Any thoughts? Thanks!!
@Lusiogenic
@Lusiogenic 6 жыл бұрын
You've probably made the axis constraint breakable. Look for Linear Breakable and Angular Breakable and uncheck them. If these are unchecked and it still doesn't work, then the constraints are probably not working at all. The door sits there because without any forces acting upon it, the engine disables the calculation of physics on it. When you touch it, it re-activates the physics and the door just falls over. If that's the case, make sure that you're entered the correct component names in the constraints and that you have properly configured them.
@TheGreatAwesome
@TheGreatAwesome 4 жыл бұрын
I followed the tutorial exactly, but when I enable physics, the door disappears when playing the game. It doesn't fall or anything. It's just not there.
@dragoonduneman4161
@dragoonduneman4161 5 жыл бұрын
Question while it look super cool.... once you run thru it... you cant go thru it again until its reset to 0.. any idea how to disable that once its blocked ?
@Lusiogenic
@Lusiogenic 5 жыл бұрын
Not sure what you mean by that. The door swings back, so you should be able to go through it.
@zekidede4566
@zekidede4566 6 жыл бұрын
Hello Bro How Can I Control This physics Object With My Mouse ?
@zekidede4566
@zekidede4566 6 жыл бұрын
I Mean, I Wanna Drag Door With My Mouse.
@Lusiogenic
@Lusiogenic 6 жыл бұрын
Yes, you could. Never tried it, though. This tutorial should help: kzbin.info/www/bejne/e3PcfZarZ5WKpaM
@thanhcongnguyen697
@thanhcongnguyen697 5 жыл бұрын
@@Lusiogenic hi pro.I have the same problem as him. but I clicked on the pro link in the comment and the video was gone. hope pro help ! please
@Lusiogenic
@Lusiogenic 5 жыл бұрын
@@thanhcongnguyen697 Hi, I have updated my previews comment with the only video I found on the subject. Please check it out.
@Matthew.1994
@Matthew.1994 5 жыл бұрын
i try to implement this into my vr project :D lets see if i can do it :D its a nice tutorial
@Mnogomer
@Mnogomer 4 жыл бұрын
How you touch door. Can you show blueprint please??
@Lusiogenic
@Lusiogenic 3 жыл бұрын
Yes, here's the tutorial for that: kzbin.info/www/bejne/n6POZoF3qquDg8U
@Lusiogenic
@Lusiogenic 3 жыл бұрын
If not, you can find the character actor implemented in the free project file from this video: kzbin.info/www/bejne/eJXHZHiXi7yraMk
@JR-rw4ms
@JR-rw4ms 3 ай бұрын
thanks you
@kathoden
@kathoden 3 жыл бұрын
To achieve the same effect without playing the game, copy and paste the nodes to the construction script
@MaxSMoke777
@MaxSMoke777 5 жыл бұрын
This doesn't cover how the player's character grabs the object in the first place.
@MaxSMoke777
@MaxSMoke777 5 жыл бұрын
Ok, *THIS* is the video where he talks about the stuff you'll need to do this tutorial. Without viewing this other video first, this tutorial is pointless. kzbin.info/www/bejne/n6POZoF3qquDg8U
@Lusiogenic
@Lusiogenic 5 жыл бұрын
@@MaxSMoke777 You're right, I'm sorry about that. I use that grabbing mechanic in almost all of my physics tutorials. I should really mention it on every video. Thanks for the input!
@Lusiogenic
@Lusiogenic 5 жыл бұрын
I've just made a tutorial for grabbing using the mouse pointer: kzbin.info/www/bejne/n6POZoF3qquDg8U
@eineatombombe
@eineatombombe 2 жыл бұрын
you know how to make literally anything using physics constrains
@iaandrei
@iaandrei 5 жыл бұрын
Had angle problems with this. Only worked when facing one direction established in the blueprint editor. Fixed it by going like this, for anyone looking. answers.unrealengine.com/questions/132521/physics-constraint-issue.html
@pointlinepolygon
@pointlinepolygon 2 жыл бұрын
Hey - I hit this snag as well but the link to your solution seems to be dead. Would you mind posting the solution again? Thanks!
@iaandrei
@iaandrei 2 жыл бұрын
@@pointlinepolygon Hey, sorry to tell you but it's been some time and I no longer have the project in which I used the solution. I'm afraid I don't have the resource or the knowledge to help you in this case. I will post a reply if I find anything though.
@COREYYILLDER
@COREYYILLDER 5 жыл бұрын
I keep walking through my door
@Lusiogenic
@Lusiogenic 5 жыл бұрын
Check that the door mesh has simple collision attached to it. Also, check that the door component's collision preset is set to PhysicsActor.
@johnja9017
@johnja9017 3 жыл бұрын
this bullshit, just add the rotation offset to 45 degress.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
How to... Physics Door
5:47
Ryan Laley
Рет қаралды 22 М.
How to create a PHYSICS-BASED DOOR in Unreal Engine 5
6:01
Triggering an animated sequence UE4
5:04
Michael Brown
Рет қаралды 16 М.
How To Open And Close A Door In Unreal Engine 5
11:51
MR GFX Unreal
Рет қаралды 4,1 М.
How to Make a Physics Door in Unreal Engine 5
7:42
Gorka Games
Рет қаралды 30 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН