This is the best tutorial I've seen for how to do this. I've spent a lot of time trying to find tutorials for vehicle physics in ue4 and honestly, none have been as good as this. This video was both concise and informative. I really loved how you described what you were doing as you went along. 10/10
@Lusiogenic6 жыл бұрын
Thank you! I'm glad the video helped. :)
@hiddenkonitsu99096 жыл бұрын
I agree ! (͡° ͜ʖ ͡°)
@stevey4815166 жыл бұрын
Great tutorial, your videos are opening me up to a whole world of cool physics stuff in UE4, really appreciate it !
@Lusiogenic6 жыл бұрын
Thanks! There are very few tutorials on physics based assets, I thought I'd fill that gap. Plus, it's really fun to implement stuff with physics. I'm glad my videos have a positive impact. 🙂
@Kirillnik2 жыл бұрын
Thank you so much!!! At least I understood the principle. I did it on UE 5. Then it turned out to be a car, but in the beginning I made a simple car according to your lesson. Thanks!
@JohnDaniels2 жыл бұрын
At 3:31 I have experienced the exact same thing and remembered you saying this in the video and putting the body on Component 2 fixed the issue with the wobbling wheel. This is interesting that is does that, did you ever figure out why or just put them backwards?
@itoodear636 жыл бұрын
tank you for ur time spent making this video and tank you for teaching me basic things that i haven't found anywhere else
@VictorMoneratto6 жыл бұрын
Just found the channel through your reddit post. It's an awesome content and useful for all gamedev! Please keep up the good work.
@dandroid44883 жыл бұрын
This tutorial is amazing! Also, how do you add steering? I tried creating a scene component for every wheel as a joint and i attached the physics and the wheel to it. Then I used the Left/Right input to set the relative Rotation of the Scene component but because the wheel is simulating physics its not working. Do you have a solution for this or another method?
@JohnDaniels2 жыл бұрын
Why did you use "Linear Motor" instead of the "Soft Constraint"?
@Lusiogenic6 жыл бұрын
I apologize about the siren in the beginning. If it's annoying I'll redo the video.
@JosephMcChristmas6 жыл бұрын
It's hardly noticeable. Thanks for taking the time to share your knowledge! :)
@jasonstatham10896 жыл бұрын
You don't say I don't know ^_^
@piustrzynasty574Ай бұрын
Thank youuuu. I was struggling with Chaos the result is really weak. This method is great! And it works on 5.5! :)
@LaynaLatte2 жыл бұрын
Thanks for this awesome tutorial! im coming from Unity and was curious if UE4 has Physics joints like unity, and i see it does! thanks for this tutorial! earned a sub!
@ankapetkova86344 жыл бұрын
Great tutorial, but can you teach us how to actually "drive" such vehicle from the Sequencer? That is how to tell it from Sequencer where to go (location) and where to turn (rotate)? I tried almost every thinkable stuff there yet no success. Well, I partially achieved that by adding the Blueprint to the Sequencer and then adding only the body part and moving that part only across my Map + pressing Alt+S for Physics Simulation before playing my sequence so that the wheels follow the body and turns as expected. But then it has some sort off stranger friction that causes it to fly off all of a sudden or flip-flopping randomly by itself like there is very small gravity or if its weight is like few grams or something. So can you show us how to do that, please? UE 4.25.3
@sajidgame13215 жыл бұрын
Thank you my brother , I wish give you thousands of likes , is amazing awesome tutorial
@JohnDaniels2 жыл бұрын
Great job 👍🏻. Question, I have always used unreal engines vehicle component which I feel like I don't have a lot of control over and I feel like it's over complex. Do you make your vehicles like in the video all out of blueprint or do you use the vehicle component?
@JohnDaniels2 жыл бұрын
Just what I needed, thank you 👍🏻
@jonedwards38273 жыл бұрын
Excellent tutorial, given me great starting point for further work. I would suggest you might consider applying for an Epic Mega Grant. Might take a while to get but definitely a worthwhile candidate
@Ahmadnaweed7862 жыл бұрын
great, worked well for me but there something more. I tried to rig the break Kaliper but couldn't. the Kaliper is attached to the wheel so it moves with it but doesn't rotate with the wheel. How can I do that?
@amirshokuhi4 жыл бұрын
hi andre i found a serious problem in Physics Constraint , it's just work in first location ! i have used floating pawn movement and i have seen mesh doesn't move but phys cons move with pawn so i had to use an assistance mesh as component 1 in phys cons , that works but pawn movement doesn't consider collision 😁 how can i use pawn movement and phys cons together? Thank you
@thecodingfox2 жыл бұрын
Great tutorial. You just earned a sub. Thanks man :D
@m.kazemakhgary13365 жыл бұрын
Thanks a lot, I didn't know about the sleep thing, previously I thought it's a bug and physics constraints would stop working when not moving xD
@DanielMaxSteinberg5 жыл бұрын
I really appreciate your video! Thanks. I'm trying to figure out the actor component stuff myself, and it's really tricky!
@gaffney923 жыл бұрын
Very good thank you for showing us!
@810Sydney6 жыл бұрын
Nice Tutorial. Is it possible to manage vehicle pawn based on this method ? I mean, instead of create a bone hierarchy in a DCC (like 3ds max/Maya/Blender) and export them to Unreal to have a PhysicsAsset, I was wondering if by exporting just statics meshes and manage them, by using what you in your video, should get better ? Any Idea ?
@JohnDaniels2 жыл бұрын
Did you get this figured out, I was wondering the same thing 👍🏻
@810Sydney2 жыл бұрын
@@JohnDaniels Unfortunatly no
@JohnDaniels2 жыл бұрын
@@810Sydney I've been watching different videos and working with unreal engine testing different things and it seems like making your own physics vehicle you have a lot more control but it's a lot more work
@simonesc53134 жыл бұрын
amazing tutorial, thanks!! Is there a way to put tank tracks around the weels (in such a way that they also respond to suspension movement)?
@digitalx84604 жыл бұрын
If I wanted to make my own model to be used as the flat rectangle you have, how would I do this? Also when I run my third person BP into this vehicle, the wheels fall off, how do I fix? EDIT: For some reason my WheelAxis Yaw was rotated 90 degrees, all is well !
@DeathDiary3 жыл бұрын
Thank you so much! Your contents are very useful.
@Brandon-w3o3 жыл бұрын
This was great! Thank you very much!!!!
@JieDu-yj2vd Жыл бұрын
You have a trolley with four wheels that turns automatically when pushed by an external force and turns automatically depending on the direction of the push, and you can do a video of that, and you'll get a good one
@ronnieochero4 жыл бұрын
Hi, would the physics applied to this car work if for instance your character jumped on top of the car? would it still react accordingly with the suspension/damper or would that need to be done in a different way?
@shanekruger94125 ай бұрын
love your tutorials! was wondering using the method of the linear motors to control a hydraulic cylinder with input keys, is this possible? or is there better ways of doing it to get realistic physics from it?
@LusiogenicАй бұрын
Yeah, you could use that with a linear drive. Using the keys events you can modify the drive target location, then the constrained component will "go" to that location smoothly depending on the settings of the linear drive.
@chandlerh2511 Жыл бұрын
You are the goat my man!
@vuilbaardgames32802 жыл бұрын
I made an axle and 2 wheels, it drops to ground without any issue, but as soon as walk against it with the third person character it flies off in any direction, anyone know how this happens, I followed this vid and have the same parameters
@esotericgamedev7 ай бұрын
Hey man do your physics tutorials work in multiplayer? I love this playlist but am a little worried about any unforeseen complexity if I start to try to reproduce them in a networked game. Thanks so much.
@AutumnSmall32 Жыл бұрын
I have a question, this is for a school project so i would really appreciate if u got back to me. 🙏🏻 When i push my cart downhill and the character jumps on the cart the cart sinks into the grass and will not move. Is there anything i can do on the cart or actor?
@faisalee4 жыл бұрын
One question! I am doing an add_torque to the wheel on the Y axis, no matter where the car is facing, the wheels only spin in global X direction! any idea why?
@bahrainhasnan Жыл бұрын
Great tutorial and it is very useful! Thank you for sharing!
@kalpeshjangid3 жыл бұрын
Congratulation for 1k
@kaloyanpetrovv4 жыл бұрын
Awesome vid man, it is exactly what I needed, however have you figured out how to implement steering in it? Anyone? Thanks in advance!!! :D
@Lusiogenic3 жыл бұрын
I am thinking of making another tutorial on steering. I still need to test stuff, though. I'm thinking in a week or two, we'll see.
@Tony_EZero_Proxy5 жыл бұрын
Wonderful video. Thank you so much. I did everything exactly as you showed, but my plane jumps on wheels and the wheels themselves jump and tremble too. What could be the problem?
@Lusiogenic5 жыл бұрын
You peobably have to make the wheela have larger mass. Either that or have a look at where the origin of the physics constraint is. Try inverting the order of the affected components on the physics constraints.
@jrgen75274 жыл бұрын
@@Lusiogenic Did you find a fix for this?
@ric-greenman Жыл бұрын
Nice tut thanks! How are u able to grab and move it during run time?
@robertoferreira31894 жыл бұрын
Hello Lusiogenic! First of all great video! I am making a skateboarding game I want to use this system. I just have 1 question... Will this vehicle be able to be animated? Because the way you made it there no bones . Thank you in advance!
@JohnDaniels2 жыл бұрын
Looking at doing some similar what did you figure out what you end up doing?
@PauloSamurai4 жыл бұрын
That was brilliant! Thank you!
@__dINe__6 жыл бұрын
After so many tutorial, i finally made it to add suspension in an object thanks to your tutorial :) Say, will you make a torque/Force tutorial in the future? Cheers
@Lusiogenic6 жыл бұрын
I'm happy to hear it! What kind of tutorial are you interested in regarding force/torque? BTW, check out the latest tutorial that shows how to make a helium balloon using a thruster.
@Lusiogenic6 жыл бұрын
I'm planing to make a tutorial for a force field and a motorcycle. Those will use force and torque.
@__dINe__6 жыл бұрын
Watching now ;)
@__dINe__6 жыл бұрын
awesome, i hope you cover how to rotate the front wheel with physics contrains as you have in this tutorial.
@naserharbi6 жыл бұрын
It took me 6 hours to figure that out! I will gladly share the info on how to do it. going for breakfast now and be back later. key element is to use the Angular Motor by checking Swing (Drives) and add the value of the Turn Rate in the correct Axis for the Target Velocity and add value for Strength. Start with small numbers first to get a feeling on how these values work. Linear Limits all locked. Angular Limits only either Swing1 motion is Free or Swing2. I couldn't make Twist Motion work but I will work on it some more. Hope this is helpful. Let me know if you need more info. Good luck
@oleg3drender4 жыл бұрын
but how can you turn the wheels so that the car turns left to right?
@virtualriot40624 жыл бұрын
Great thanks, that's what I was looking for
@dragoonduneman41615 жыл бұрын
Hey question how do you get the wheel to turn say LEFT OR RIGHT.... I got to move one direction but when doing cart this style how do we get the front wheel to turn
@yulipurblue2 жыл бұрын
Thank you, this is very inspiring to me.
@MonteeGames4 ай бұрын
Thank you very much for th,s very important tutorial.
@GrowingY10 ай бұрын
How do you drag the objet in the the viewport during simulation? You press the play button and drag it.
@Lusiogenic10 ай бұрын
kzbin.info/www/bejne/n6POZoF3qquDg8U 🙂
@faisalee4 жыл бұрын
Awesome explanation, love it
@cf78335 жыл бұрын
Whenever I have "Simulate Physics" enabled, my wheels fall off. Any tips?
@mlg_overlord4 жыл бұрын
Check ur collision in wheels' static mesh it might solve ur problem
@AlFredo-sx2yy4 жыл бұрын
hey i hope you can give me a hand please! Im trying to make a game where you can attach components to your vehicle. I managed to make the wheel work on its own with the physics constraint (the setup is a wheel with a flat plate on top and you attach the plate to the vehicle), but the moment i attach the wheel bp to the vehicle bp, the wheel falls down, as if the physics constraint had been disabled or lost. The wheel does rotate freely which means that the constraint is not acting, what could be the problem?
@ahmethakanarslan38934 жыл бұрын
what is your gamemode
@TomatoWithARifle4 жыл бұрын
How would I add steering and power it with this method?
@loverschoice8853 жыл бұрын
i have tried using this to another tutorial, a biplane tutorial, all i wanted was to use this on the plane so i could land, but, when i add this to the biplane bp, inflight it gets torn off the plane as soon as i pie it. Any recomendations? What to look at?
@Lusiogenic3 жыл бұрын
Hard to say without seeing your setup. But from what you're telling me, it could either be that you're somehow re-initializing the constraints and so it's breaks off. Or, you have set it to breakable. You should concentrate your analysis on the constraint that gives way or breaks. A short video would help a lot.
@loverschoice8853 жыл бұрын
@@Lusiogenic Thanks a lot for the feedback. Yeah, i will, i had a hdd crash and the project sadly is gone now. But iam remaking the plane again. The tutorial for hte biplane creates its custom physics, so i dont know that could interfere with the constraints. It really makes u feel dumb when its just 2 wheels the whole problem contains aswell. Takes longer to solve having two functioning wheels then creating a flying plane with missiles an guns :P I will remake it anyway, and get back to you with a clip. Now ill know to look especially at the contrainsts so ill do some more digging on that aswell.
@Lusiogenic3 жыл бұрын
@@loverschoice885 Please do, sounds interesting.
@sajidgame13215 жыл бұрын
can you make tutorial for how we can play with this physics car and how we can steer the FRONT WHEELS left and right
@Lusiogenic5 жыл бұрын
I have tried, it takes some trial and error. I will make one in the future, but not sure when. There dozens of tutorials to make and so little time..
@zeon3d755 Жыл бұрын
If I add this cart to my character blueprint as a child actor. Also add another physics constraint to my character. How would I be able to get it to work? I want my player to be able to drag the cart.
@SaarTheDev2 жыл бұрын
How to do it with two angular constraints?
@jaxxrr6 жыл бұрын
what about steering ?
@Lusiogenic5 жыл бұрын
Steering is more complicated. I haven't managed to make it work yet. I have to apply differential steering, and other stuff.
@BarakaGameDev5 жыл бұрын
ALSO HOW DO YOU REDUCE JITTER?
@Lusiogenic5 жыл бұрын
Make sure that the ratio betwewnd the masses of the wheels and the body is not too high. I wouldn't recommend more than 10 times. If not, look into adding physics substepping.
@jamaalsineke24053 ай бұрын
Hi Luis.....is this physics series you made still vlid in Ue5.4?
@Lusiogenic3 ай бұрын
I've opened in 5.4 my projects from 4.7 and they seem to still be working, so I would say yes. It seems 5.4 is the only version that has acceptable physics stability with Chaos. Here's hoping 5.5 will be even better.
@jamaalsineke24053 ай бұрын
@@Lusiogenic Thank you so much for getting back to me,and thank you for all the amazing physics tuts
@overlandgames2 жыл бұрын
this makes my cart spin uncontrollably. What am i doing wrong here?
@BarakaGameDev5 жыл бұрын
HEY LASIO...IS IT POSSIBLE FOR YOU TO CREATE A VEHICLE PROJECT BASE ON THIS TECNIQUE. WITHOUT USING SKELETAL MESHES?
@Lusiogenic5 жыл бұрын
Yes, it's possible. Maybe I'll try it in the future.
@llamamehoju2 жыл бұрын
If your vehicle stucks floating, yo have to enable physics for the wheels and the body in the object details
@Thunder_Owl6 жыл бұрын
I am wondering, if I will have AI system for such "car", with turns, would it be workable just making fake wheels axis turns (rotations), meaning two of wheels turning a bit on "Z" axis while in fact it will be car body that gets actor rotation, and wheels just "play along"... I hope I managed to describe my thought :)
@Lusiogenic6 жыл бұрын
Yes, you can set the wheels to stay into a certain position using the Set Linear Target Position and Set Angular Target Rotation. Well, if you set the position of the wheels and make them turn with Add Torque or Set Angular Target Velocity, the car should work as a normal car, without any hacks. I haven't yet done this, so it's still theoretical. But, if you want, you can turn the wheels and body at the same time. Not sure if just turning the body would work..
@Thunder_Owl2 жыл бұрын
@@Lusiogenic Hello! Little hope you still might read here, but I will try. Today I felt need to continue experiments with this, trying to make turning in realtime. After several hours, no luck. I am not finding is it possible at all to turn anything in such constraints constructs. If I set constraint with wheel "child" at angle before run - yes, it is fine (I test on slope). But, I have not yet found a way to steer at runtime. Anyone knows maybe? Maybe it is simply impossible with such setup? Thank You... Edit: I had some small success to set wheels rotations via "set angular target" for axis constraint, so it starts to drive / turn tank-like (ok for me), but... it does that only one time. Am I missing some aspect, or this isn't actually workable? Thank You... EDIT2 - hmm with more experiments I think I am getting some needed results on controls...
@tristanstier3 жыл бұрын
Well earned like and sub.
@MegaAlexkiller7 ай бұрын
Hi great stuff! Is there any way ton contact you other than comments ? Thanks
@springcar Жыл бұрын
Fun and inspiring, useful! Lets make fun useful driving fysics motionings :) i subbed! Are you making car game with some team?
@MathB_Official6 жыл бұрын
suspensions are made so you do not feel imperfections onto the road? wow, somebody should tell that to modern cars manufacturers xD (I am making fun of modern cars with their dropped, rock-solid suspensions and low-profile tires)
@Lusiogenic6 жыл бұрын
:D Well, I'm not and expert in cars, so I said it in layman's terms.
@MathB_Official6 жыл бұрын
I was not making fun of you, I was making fun of modern cars and their shitty suspension haha, your videos are great :)
@Lusiogenic6 жыл бұрын
I understand. :) Thanks!
@luisalejandroaular28125 жыл бұрын
Well low and solid suspension systems make the car handles better
@freezEware4 жыл бұрын
@@MathB_Official You also need to understand the use for rock solid suspension and rigid chassis that some people prefer, especially in track racing. Most performance/sports cars have that and it's by preference for those who understand to value such things.
@ruandavid63283 жыл бұрын
People posting indie racing games on steam should watch this tutorial first
@eddiescofield6 жыл бұрын
Hi lusiogenic, how i can rotate the wheels with this system?
@Lusiogenic6 жыл бұрын
Yes, you can either directly AddTorque to them each frame or set up an angular motor in the PC_WheelAxis and set the desired Target Velocity. I will do a complete car tutorial with acceleration and steering, but haven't yet got around to it. Working on something else at the moment.
@artbyal24095 жыл бұрын
so i found a solution i really wanna use, problem is, my vehicle is a flying vehicle, ive added the wheels beneath the vehicle mesh, i disabled the disable collisions in the pc axis components. But now my flying vehicle is rotating uncontrollably in the air. Theres some kind of conflict. My goal is to use the velocity and torque from the flying vehicle and let you wheel tutorial only let it roll on planar surfaces. the vehicle spins in its roll and yaw. Any feedback would be appriciated on this. from anyone really. :)
@Lusiogenic4 жыл бұрын
Without knowing more on your setup, it's hard to figure out what's wrong. If you want to make a hovering vehicle, I would go with line traces and thrusters.
@eclecticgamer51443 жыл бұрын
Problem I have: When my 3rd person character stands on the vehicle, it goes nuts, and eventually falls through the ground. :(
@Daniel-qt5ib3 жыл бұрын
Did you ever manage to figure out a solution for this? I've found a similar issue - I dialled the weight of the body & wheels up by a lot but it's almost like it's made out of paper with how it flies around everywhere & freaks out if you jump on it. Mine isn't so much falling through the ground, more that it ends up on its side with 1 or 2 wheels stuck in the ground.
@eclecticgamer51443 жыл бұрын
@@Daniel-qt5ib Nope. It behaves as if the player has infinite mass... and "unstoppable force" as it were.
@__dINe__6 жыл бұрын
I hope you can continue from this tutorial on how to turn the wheels please.
@Lusiogenic6 жыл бұрын
I will. I'm planning to make a car tutorial with acceleration and steering.
@__dINe__6 жыл бұрын
Lusiogenic that would be awesome :) love your tuts man!
@grimmrobe2206 жыл бұрын
@@Lusiogenic This would be great! I can't work out how to apply forces in a way that doesn't fire my object into outer space.
@Lusiogenic6 жыл бұрын
@@grimmrobe220 I will be making a dev stream on Twitch on this soon. Follow me on Twitch to be notified (link in video description). I will be exploring how to make a 4-wheeled vehicle with acceleration and steering. After that, I will be refining it and turning it into a tutorial.
@Video-by6lp5 жыл бұрын
The best !))
@speedracer1232225 жыл бұрын
Suspension was invented for getting traction on uneven road and off road. It had the Benefit of comfort
@Lusiogenic5 жыл бұрын
Ah, I see. Good to know, thanks!
@saenkoandrew6 жыл бұрын
H! It`s very usefull tutorial, but now I`m two weaks try to make input for this Pawn((( Can you make tutorial for MovementInput for this Vehicles? Please
@yannmassard39706 жыл бұрын
would be actually very complex / unstable to use physics combined with inputs since physics rely mostly on forces ...
@Lusiogenic6 жыл бұрын
@@yannmassard3970 I don't see any reason why it couldn't work. You could use inputs to set the orientation of the wheel and that position will be held using a physics constraints. If you want the wheel to be more sturdy, you could increase the force applied by the physics constraint.
@Lusiogenic6 жыл бұрын
I'm planning to make a 4-wheeled physics actor, but not sure when.
@yannmassard39706 жыл бұрын
@@Lusiogenic you can, And it will work. But you would have to tweak the numbers to get something totally stable in a video game. What I mean by stable, is totally predictible. But don t get it wrong, your videos are a must see for any body who wants to get seriously into UE
@Lusiogenic6 жыл бұрын
@@yannmassard3970 I agree, that's why you would use physics, for a more real behavior, where you have variation and randomness. Thanks! :)
@pedromameluque17345 жыл бұрын
Could you please make a tutorial for a physically based Motorcycle ?
@Lusiogenic5 жыл бұрын
I've tried, but haven't managed to make it work. I think it's missing the precession calculation and that would be to complicate to implement. It would have to be faked somehow.
@atharvakulkarni1143 жыл бұрын
Can anyone help me as to how to make a blueprint of a vehicle with no wheels ?
@Lusiogenic3 жыл бұрын
Can you be more specific? You mean like a hover craft?
@atharvakulkarni1143 жыл бұрын
@@Lusiogenic , I have a hull of a vehicle on which I am ushing python Api to integrate lidar. But Airsim can use its lidar model on something which is recognized as a vehicle by unreal. So, i need to use only the body of the vehicle(with no wheels) behave as a vehicle. would you have an insight into achieving this? Thankyou.
@Lusiogenic3 жыл бұрын
@@atharvakulkarni114 You mentioned some stuff I have no idea about.. Still not sure I understand what you're saying, but, couldn't you just make the wheels invisible? I will behave the same way, bu you would only see the body.
@atharvakulkarni1143 жыл бұрын
@@Lusiogenic , Hi can you give me more details on how to make the wheels invisible ??
@Lusiogenic3 жыл бұрын
I was kind of hoping you already knew how to do this since you are already playing with more complecated stuff :) In the actor blueprint, select the Static mesh component of the wheel, go into the properties panel and check Hidden in Game.
@unrealengineruseng95835 жыл бұрын
Cool !!!)
@stormolflak2 жыл бұрын
👍
@unrealengineruseng95835 жыл бұрын
Wow!)
@retro19744 жыл бұрын
Not Working My Tires Get Unstable The car stay at same place
@Thunder_Owl6 жыл бұрын
... and then we put a laser turret on it ;-)
@Lusiogenic6 жыл бұрын
If I ever make a turret, you can be sure I'll combine the two. 😀
@Thunder_Owl6 жыл бұрын
Oh you do that please! :) Meanwhile, i took some hover nodes i found on Github, and made these fun guys! :)) (some more info in description): kzbin.info/www/bejne/rF6ldpyEqa1mhLc
@Thunder_Owl6 жыл бұрын
@@Lusiogenic , wait, how are you actually grabbing that "car", you have some grab/interaction nodes already in place? Maybe you happen to have these excersizes also on Github or something? ;)
@Lusiogenic6 жыл бұрын
@@Thunder_Owl Yes, there's a grab blueprint. No Github for now, but I've got a tutorial: kzbin.info/www/bejne/n6POZoF3qquDg8U