Ue4 Tutorial - Moving an Object along a path using a Spline Track

  Рет қаралды 139,690

DoubleCross Games

DoubleCross Games

Күн бұрын

Пікірлер
@marciomarquer
@marciomarquer 7 ай бұрын
I followed a lot of tutorials, but for those just starting out, it's difficult. Most of them say they will teach, but they desperately click on the screen so that there is no way to follow... something very incoherent for those who say they follow "logic". But you made a spectacular tutorial...you could understand EVERYTHING and it worked!!! Dude, you are CONGRATULATIONS, because you really differentiate yourself from others... YOU KNOW HOW TO TEACH!!
@EspacX
@EspacX 5 жыл бұрын
This has to be the best tutorial out there. Thank you so much for your great explanation. One thing I'd like to add: About 10:12, you can use a "Sequence" node for that.
@nervewar7738
@nervewar7738 4 жыл бұрын
I really like your calm and clear teaching style. You're like the Bob Ross of Unreal.
@brittanycruz1717
@brittanycruz1717 4 жыл бұрын
Happy trees 🌲
@clawrag9152
@clawrag9152 4 жыл бұрын
Who is Bob Ross?
@nokander
@nokander 3 жыл бұрын
Understanding nothing you say and just copying what you do and I'm like halfway in the video thinking 'no way this works'. Works.
@terrablader
@terrablader 2 жыл бұрын
just starting tut can already tell its a winner
@LinkokiriHon89
@LinkokiriHon89 5 жыл бұрын
It's incredible how many blueprints and variables you have to implement to make it work. °_° Ty for the tutorial!
@blackswan6386
@blackswan6386 4 жыл бұрын
in this i wish unreal has an easy workflow as after effect, just add, orient to spline, set time offset start/end, and finish :D - in unreal you have to be a math expert or c++ programer,...wtf - thats what i mean, we need a new engine who combined the best of all into a new Legendary Engine !
@muffininacup4060
@muffininacup4060 4 жыл бұрын
@@blackswan6386 well, ue4 offers a lot more functionality than aftereffects and therefore allows you to tweak and program every single thing yourself for any use you might need; if it was hardcoded you would miss on functionality. yes, you might need a bit of math/programming knowledge to tell it what you need to do but that should be a given if one's planning to be a dev.
@SorceryGames
@SorceryGames 2 жыл бұрын
Excellent tutorial. I wanted to use splines for my enemy flying movements and though, hmm I wonder if there is a good tutorial. There sure was. Thank you so much for this, saved me bags of time reading documentation (and who wants to do that!!)
@QuitevFX
@QuitevFX 3 жыл бұрын
Fantastic tutorial! You are so concise and well-spoken. Your short explanation of a Lerp mid-tute was super helpful. Thank you!
@JoeElShawadfy
@JoeElShawadfy 2 жыл бұрын
you are awesome and you deserve more attention
@Politicalmeme
@Politicalmeme 4 жыл бұрын
how to trigger this in sequencer?
@TorQueMoD
@TorQueMoD 4 жыл бұрын
Thank you for the great tutorial. I actually followed another one but they were doing it in a much more convoluted way by setting the world transform on the mesh itself and then trying to add in an offset, but the problem was the offset changes depending on where it is in the world. Your tutorial allowed me to figure out how to add in a relative offset which is perfect.
@adamtherealone
@adamtherealone 3 жыл бұрын
To anyone wondering, you would want to use a relative transform rather than a world based transform.
@ElectroGamesYT
@ElectroGamesYT 4 жыл бұрын
How to fix cart rotation?
@tron_evan
@tron_evan Жыл бұрын
Thx for this amazing tutorial! I have one question: At the final step, how to draw a specified trajectory for expamle a circle?
@elroyquartel5912
@elroyquartel5912 3 жыл бұрын
am i the only one that cant find the "get useful spline" at 5:45 ? or did i do something wrong so i cant see it?
@anthonyschilling7132
@anthonyschilling7132 3 жыл бұрын
Same here :(
@ximonwhhatt3796
@ximonwhhatt3796 2 жыл бұрын
i'm lost here
@Luos_83
@Luos_83 2 жыл бұрын
Straight to the point, and works. Thanks :)
@unluckynumber3825
@unluckynumber3825 4 жыл бұрын
Wow, I wish all tutorials were this awesome.
@CreationArmyTV
@CreationArmyTV 2 жыл бұрын
You’re a life-saver! Thank you! I’m trying to make a ‘conveyor belt’ of moving obstacles in a Plinko game and this is exactly what i needed
@paulus6809
@paulus6809 3 жыл бұрын
Great tutorial! One question: How can I make my cart stop at the spline´s end point instead of respawning at the start?
@doublecrossgames9355
@doublecrossgames9355 3 жыл бұрын
Hi, the simplest way is to set the timeline looping off. With the loop off it will simply stop at the last point on its own. Then you can also play it in reverse to have the cart go back to the start point. Hope that helps
@paulus6809
@paulus6809 3 жыл бұрын
@@doublecrossgames9355 Thank you so much! :D
@Buugane
@Buugane 2 жыл бұрын
Well paced and delivered tutorial which I thought I had followed to the letter. I can't even get the spline mesh selected in the Blueprint to appear when I drag it into the scene. I keep getting an error message that "The default scene root is not static". I have tried several times to just create a BP with a basic Cube mesh as in the tutorails and no other commands and still have the same issue. Any suggestions please as my thinning hair is suffering with being pulled out! Many thanks
@NitroIndigo
@NitroIndigo 2 жыл бұрын
I tried making the spline a component of an object's blueprint, but that caused the entire component to move, instead of moving the static mesh along the spline. I can't get references to a separate spline actor in blueprints. How can I fix this?
@insanamon3456
@insanamon3456 3 жыл бұрын
Is there a way to make the cube know wich track it's supposed to follow without having to put it down and than click the track I want multiple enemies to spawn in waves and follow the track when they spawn but I can't do that because of that feature and I don't know a way aroumd it please help
@marlisfleischmann6633
@marlisfleischmann6633 4 жыл бұрын
Thank you, great tutorial! Any idea how to loop the movement? I got loop on the timeline checked. However, it doesn't loop.
@trinhcongnguyen4175
@trinhcongnguyen4175 3 жыл бұрын
You should select both "Loop" and "Use Last Keyframe?".
@NickAB94
@NickAB94 3 жыл бұрын
Hi this works well for me no problem. However when ever i bring in another spline and a different mesh nothing happens?
@wgiesel
@wgiesel 4 жыл бұрын
Great tutorial! Thanks. If it possible to let move the cart in close loop?
@CalebHoernschemeyer
@CalebHoernschemeyer 4 жыл бұрын
I don't see the Track variable type as explained at 5:27. Using the latest version of 4.24. Also, press here for quack noise --> 5:27
@VirtualWorlds
@VirtualWorlds 4 жыл бұрын
It's quite possible you didn't call your spline Blueprint Track. Go back and change the varible *SEARCH FOR* the name you called your Spline track blueprint! That should do it me thinks. =-)
@FDCPElmo
@FDCPElmo 5 жыл бұрын
Really good tutorial, you explain everything perfectly. Would it be possible to make a single BP that acts like a train following the track?
@FDCPElmo
@FDCPElmo 5 жыл бұрын
Omar J. Cruz Rubio I managed to do it. I removed the static mesh from this blueprint and made a new BP called Traincart_BP with nothing except for a static mesh attached to the root. Then in your BP I added a Forloop to the begin play to spawn an X amount of traincart_bp’s and store this in an Array. Then after your Set Alpha node I added a ForEachLoop for the Array which connects to your SetActorLocationandRotation exec and target. And the ForEachLoop array index I multiply with a float named Cart Distance which I then add with your Lerp into the get Location and get Rotation distance.
@nobunaga8514
@nobunaga8514 5 жыл бұрын
@@FDCPElmo I am going to attempt this... But would it be possible to do this by using this system to build the wheel sections to the front and back of each cart and then using dynamics constraints to pin each cart to the front and back wheel assembly?
@andrewpaine2957
@andrewpaine2957 4 жыл бұрын
Excellent tutorial, simple to follow and great effect, thanks
@杨悍文
@杨悍文 3 жыл бұрын
How can I set the line during playing and make the Cube move along the line I created in game?
@emirhankose9495
@emirhankose9495 2 жыл бұрын
Thanks for tutorial mate! It was very helpful.
@daniel.pandele
@daniel.pandele 3 жыл бұрын
This is exactly what I needed. Short and sweet presentation, GG
@Kaylum_Birrell
@Kaylum_Birrell 3 жыл бұрын
Is there a way to make the player character follow the line is it the same as the object but just replace it with the character??
@AgentOttsel
@AgentOttsel 4 жыл бұрын
Awesome tutorial! Very clear and concise!
@chiefrbc8919
@chiefrbc8919 3 жыл бұрын
Thank you so much this solved a week long issue!
@Arne1998
@Arne1998 5 жыл бұрын
Is there a way i can give it different speeds between 2 points in time? I want the cart to go really slow at some point and then accelerate quickly
@doublecrossgames9355
@doublecrossgames9355 5 жыл бұрын
Yes, its a bit involved for the comment section but the short answer is you add a duration variable to the track itself and have more than one track section. In the "Complete" or "Finish" pin out of the timeline you can simply use your Track reference to update the Duration on the cart to match the speed you want. You will also need to add a "Next Track" variable to the track itself so you can eyedropper the track segments to each other in the right other. When the cart reaches the end of a track segment it will have its track ref updated to the next section as well as the duration.
@Arne1998
@Arne1998 5 жыл бұрын
@@doublecrossgames9355 Thank you so much!
@SPSSkals
@SPSSkals 4 жыл бұрын
Thank you! I had a similar system using timeline and world locations lerping from A to B but wanted to get it to work via spline and this was exactly what I was looking for.
@emberwulfz6948
@emberwulfz6948 3 жыл бұрын
Amazing video man!
@gregster6686
@gregster6686 2 жыл бұрын
Please help! I'm getting an error 'the property assoiciated with useful spline could not be found in ....'
@LarionSiments
@LarionSiments 4 жыл бұрын
Hey, absolutely fantastic tutorial! how can i stop the cart at the end (or middle, based on the point in the lerp)?
@doublecrossgames9355
@doublecrossgames9355 4 жыл бұрын
Yep or when the timeline gets to .5. You could even make an event track with a key at that .5 mark and have it fire an event for w/e you want
@LarionSiments
@LarionSiments 4 жыл бұрын
@@doublecrossgames9355 Thanks for the answer, but i don't really get how would i go about that, how do i set an event from when the timeline gets to 5?
@doublecrossgames9355
@doublecrossgames9355 4 жыл бұрын
@Siments Larion In the tutorial I used a float track in the timeline to get the alpha. There is something called an Event Track as well. That one outputs an execution instead of a float. Then you can make a custom event and attach it to the stop on the timeline itself. When a keyframe in the.event track gets called your custom event can be called. Also to make it stop at the end just make sure your float track isn't set to loop. Hope that helps.
@LarionSiments
@LarionSiments 4 жыл бұрын
@@doublecrossgames9355 Thanks a lot man!
@mahmudhossain4917
@mahmudhossain4917 4 жыл бұрын
How would you add more cubes so that it behaves like a moving train? I see start offset is a solution. But better solution would be to to connect the cubes.
@ahmadsy1000
@ahmadsy1000 4 жыл бұрын
@Chief Roomyoni how to use а rigged model on splines in UE? Maybe u know?
@blackswan6386
@blackswan6386 4 жыл бұрын
hello sir. i love this tutorial, tthis spline action is so powerfull for animation motion grafix. your voice is warm and the lesson is really comfortable. but let me ask one question, in my case i put a SHIP o nthe spline, but it does not rotate in the direction of the spline, it looks like th rotatio and angle does not work ?! can you help me what i missed or how to set up ? just 1 click or more ? thank you
@FitGameDeveloper
@FitGameDeveloper 5 жыл бұрын
Amazing tutorial, thank you! This is even better than I had hoped for.
@BATCH3
@BATCH3 2 жыл бұрын
Amazing!! Just what I was looking for!!! Thanks a lot!
@emberknight6848
@emberknight6848 3 жыл бұрын
is thier a way how i can make it so i can just put the one cart in and make it so that one can make 4 go around it? ie make it visible and set the amount you want to go around it??
@doublecrossgames9355
@doublecrossgames9355 3 жыл бұрын
Hi EmberKnight, the simplest way would be to add a variable integer to the cart that is exposed so you can set it to the number of loops you want. Then on the timeline you would add and execution curve with keyframes at the start and end of your Alpha. Set up a flipflop node that alternates updating and checking and checking a blank integer variable to see if it is equal to the one u are updating. If true call stop on the timeline. Hope that helps
@wurstpeter754
@wurstpeter754 Жыл бұрын
Hello, does this method also work with UE5? I'm using version 5.3 and followed everything exactly as you showed in the tutorial. However, at the end, when I try to use the spline as the track reference in the Cart Blueprint, it keeps saying that the track is incompatible.
@DeepFriedOreoOffline
@DeepFriedOreoOffline 4 жыл бұрын
Is it just me, or does it appear that the duration of your script doesn't work? At the very end, 12:35, you set the duration of the second kart you add to 5. But when you hit play, although it snaps to the middle of the spline and continues normally, they both move at the same speed... Seems weird, because it works for me.
@divyabaranwal6825
@divyabaranwal6825 3 жыл бұрын
could we do the same thing with niagara particles? I wish my particles to face along the path direction
@TheRedflash777
@TheRedflash777 4 жыл бұрын
Great tutorial, please don't stop sharing your awesome stuff:)
@CommanderColson
@CommanderColson 3 жыл бұрын
Is there a way I could make the actor ‘jump’ to another spline after finishing the first? Example: Spaceship flies down to planet along a spline from its mother ship. After landing (finishing the spline), it lets the player out to walk around. Player then returns to the spaceship with the intention of returning to mother ship. Once inside, space ship uses new spline to TURN AROUND and fly back to mothership. I unfortunately can’t just use a flip flop, as that will make it look as though on the return journey, the space ship is just backing up into space.
@alexdixon5208
@alexdixon5208 4 жыл бұрын
Great tutorial man!! This has helped out a lot. Any ideas on how to start on the spline track at the closest spline point relative to the cart / player? Say if they jumped on it in the middle, is there a way with this structure to start in the middle instead of the beginning?
@JM-tn9cb
@JM-tn9cb 4 жыл бұрын
You might want to try the node "Find Location closest to world location". Just found it yesterday :)
@LucasSantos-gt9ve
@LucasSantos-gt9ve 5 жыл бұрын
Great tutorial, helped me a lot! I have a question, and looking at the comments below I see that I'm not the only one with the same issue. I need to create multiples objects following a spline, something like lots of arrows in random offsets along the spline to show the flow of some fluid. Any chance to create a tutorial on how to do something like this? Or any suggestion on how to achieve this? Thanks!!
@Cross1013
@Cross1013 5 жыл бұрын
So since the movement logic is actually on the carts, you may be able to add a Vector variable to the cart and add that offset to the vector that is plugged into the "set actor location" node. This will have the cart moving along the spline but not actually on the spline itself. Once you have the offset on the cart added you can expose that variable and change it for multiple carts while on the details panel while on the view port. There is also not a limit to how many carts can be on the spline, so you can duplicate the asset, link it to the spline and change the offset vector so they dont sit on each other. Hope that helps
@VertexHero
@VertexHero 2 жыл бұрын
Is there a way to do this manually in key frames, via sequencer? It would be easier for me to do this outside of run time. I appreciate your help.
@TriThom50
@TriThom50 2 жыл бұрын
Can this be applied to a pawn instead of just a static mesh? I have a more complicated model of an object I want to move on a set path just as you did with the cube, but this object is a pawn and not just a mesh.
@doublecrossgames9355
@doublecrossgames9355 2 жыл бұрын
Yes, any actor that has a movable transform will work with this
@TriThom50
@TriThom50 2 жыл бұрын
@@doublecrossgames9355 okay so what if you have a car where the body of the car and the wheels are perhaps a separate but attached mesh, if you use this method it will move the body of the car linearly, will the wheels rotate?
@doublecrossgames9355
@doublecrossgames9355 2 жыл бұрын
@@TriThom50 Shot answer is that if the meshes are moving as one as in Mesh 1 world transform > mesh 2 relative to Mesh 1. It should move both so long as mesh 1 is the one moved. Hope that helps
@TriThom50
@TriThom50 2 жыл бұрын
@@doublecrossgames9355 So I have been able to build this on my own mesh, and it shows up in my world when I play the game, but it doesn't actually follow the spline track. Do you know of any potential issues?
@lionellaurent108
@lionellaurent108 3 жыл бұрын
Exactly what i need now. Thank you a LOOOOOT !!!!!
@CountOfWoodlands
@CountOfWoodlands 5 жыл бұрын
However, how do I determine easily at which time the cart shall start to move without messing other things up? With this set up, it always goes off once the game starts.
@CountOfWoodlands
@CountOfWoodlands 5 жыл бұрын
@@doublecrossgames9355 ok I tried but I keep messing up other things by doing so. Could you maybe explain that more thouroughly? I really need to get that trigger option (starting spline after, for example, 3, 4 or 16 secs after roundstart). It's all amazing with the duration, cart start offset options etc, but I really need that trigger option.
@redknuckles7655
@redknuckles7655 5 жыл бұрын
@@CountOfWoodlands Make a bool on your character called "IsinCart?" Then go into your cart bp and get rid of the "Begin play" now use a trigger box in your level where you want your character to trigger the cart so set a trigger box get your cart Actor and get the "Move cart" function and call it. Use the trigger box to set the new bool "Isincart" and have the move kart function only work if that bool is true. Your problem is "Begin play" As soon as the game starts that node will fire and only once and only when you click the play button. You need to call that "Move kart" Function by triggering it. Hope that helps
@CountOfWoodlands
@CountOfWoodlands 5 жыл бұрын
@@redknuckles7655 ok that was helpful and I can need it this way too, although it didn't really answer my question. I think I'm to blame for not expessing myself clearly enough - I'm not native English. What I needed is to set a specific time at which, for example, the cart begins to move, I don't want to trigger it whenever I move to a specific location with my character.
@CountOfWoodlands
@CountOfWoodlands 5 жыл бұрын
@@redknuckles7655 Update: okay. I've just figured it out on my own. I just had to set an event graph before event begin play. However, my objects are shaking back and forth very rapidly on the spline before the action begins. It's just little motions but they are shaking like crazy, as if they couldn't wait to get flying.
@redknuckles7655
@redknuckles7655 5 жыл бұрын
@@CountOfWoodlands glad you figured it out. not too sure on the shake.. I set one up and noticed it has some shakes but if i curve the path more smoothly it does not happen as much. Does it shake while going straight?
@264games2
@264games2 3 жыл бұрын
I'm Late on this one but I have a few issues. How do you get it to stop at a point along the spline?
@doublecrossgames9355
@doublecrossgames9355 3 жыл бұрын
Hi, theres a few ways you can do this. Basically what you are gonna wanna do is check the location of the cart. Either by checking the alpha or by causing overlaps along the track. Either way you will need to trigger a custom event and hook that event into the stop pin for the timeline. You can then either require a player input or set a timer to start the timeline back up. Hope that helps
@LoganVFX
@LoganVFX 3 жыл бұрын
Hi! Now that i ve everything up, i would like to make it start when i play my sequencer, would you have any idea how to do that?
@doublecrossgames9355
@doublecrossgames9355 3 жыл бұрын
Hi Logan. I believe you can get a reference through the sequencer interface and then call the start event as a key frame so the kart will move on queue. Hope this helps
@LoganVFX
@LoganVFX 3 жыл бұрын
@@doublecrossgames9355 Hi, thanks for your answer, that s exactly what i did and it seems to be working. Thx for the tutorial man.👍
@3RDEYELOVE
@3RDEYELOVE 3 жыл бұрын
How do you attach to spline and then control it with D-pad on controllor?
@xcarter48
@xcarter48 5 жыл бұрын
This is so helpful, thanks so much! If you made the object on the spline a cart or vehicle, how would you get someone to spawn inside of it and ride the spline path to the end?
@doublecrossgames9355
@doublecrossgames9355 5 жыл бұрын
Hi, sorry for the late reply. There's a few ways to handle that, but if you want a character to spawn inside it and move along the track as a single unit, you probably want to make a second "set actor location and rotation" for the character you are moving/spawning except I would add a scene component to the kart that will serve as the target for that second set actor location. The character's basic controls will not work properly while this is running though. So the character in the kart would be trapped until the ride ends.
@xcarter48
@xcarter48 5 жыл бұрын
@@doublecrossgames9355 Perfect, thanks!
@marciomarquer
@marciomarquer 3 жыл бұрын
Perfect explanation...excellent teaching and an objective and really logical programming. Excellent video! I've already subscribed to the channel!
@benjaminsmith184
@benjaminsmith184 2 жыл бұрын
Would anyone be able to help with my question?, How would you get the custom event to happen when the player overlaps a trigger box?
@doublecrossgames9355
@doublecrossgames9355 2 жыл бұрын
Hi, there are actually 2 ways that you can do that off the top my head. 1. You can add a trigger box to the actual track and on begin overlap call your event. 2. Grab a default trigger box and drop it in the scene then select it and open its blue print. Add a variable of the type Kart and expose it by clicking the little eye. You should be able to select the box in the view port (from the scene not inside the bp) and use the eye dropper to select the kart. Then you just drag out of that variable (in the blueprint) and call the even. Hook up the execution pin to the event overlap of the trigger box. Hope that helps
@QuickSnipe777
@QuickSnipe777 3 жыл бұрын
Hi there, I used this tutorial to make my plane blueprint fly through the sky and it all works great!. My only problem with it is that the static mesh always faces one way even if I have it doing a bunch of turns throughout the track. Where is the best place to fix something like this? Thanks!
@doublecrossgames9355
@doublecrossgames9355 3 жыл бұрын
The static mesh should rotate to match the curve of the spline. Make sure you hooked up your set actor rotation node like I did in the vid. Hope that helps
@URUC-Official
@URUC-Official 4 жыл бұрын
Great Tut! How can I make the "cart" look forward the whole time? where is Z axis rotation is locked but it can still swivel side to side?
@naylaw1928
@naylaw1928 4 жыл бұрын
I had to go back and rotate it in the original max file and export it again. it work when I replaced it in the blueprint.
@vesselofsleep
@vesselofsleep 3 жыл бұрын
Followed step by step, all works. However my object that moves along the line is sideways by 90 degrees, how do I change this to face the spline?
@doublecrossgames9355
@doublecrossgames9355 2 жыл бұрын
Hi, to set an accurate rotation along the spline you need to use the set actor location and rotation node. You then have to get updated rotations from the spline using a get rotation at location along the spline same as with the location set up on the video. Note that the default forward facing direction in UE4 is along the X axis so if your cart is not facing that direction inside its own blueprint it will appear to be moving off axis. Hope that helps
@vesselofsleep
@vesselofsleep 2 жыл бұрын
@@doublecrossgames9355 sorry you've lost me a bit there
@vesselofsleep
@vesselofsleep 2 жыл бұрын
i've set the rotation and location nodes to x: 90
@vesselofsleep
@vesselofsleep 2 жыл бұрын
oh i see yeah the object is not facing that direction, how do I change this?
@doublecrossgames9355
@doublecrossgames9355 2 жыл бұрын
@@vesselofsleep you just go into the cart BP and physically rotate the mesh in the viewport to face the local Xaxis
@Xiaoxiao738
@Xiaoxiao738 3 жыл бұрын
How to add more than two points on the spline? I only have the start the curve and the end point.
@doublecrossgames9355
@doublecrossgames9355 3 жыл бұрын
Hi, you can select the end point and alt+drag to make another point. It will auto populate a curve for the new end point
@FB-eq9vl
@FB-eq9vl 3 жыл бұрын
Great tut mate! Thank you very much!
@isaackershnerART
@isaackershnerART 5 жыл бұрын
I am trying to set multiple characters to follow this. How would I set a random radius from the spline to add variation to the characters walking on it?
@marwanreda157
@marwanreda157 3 жыл бұрын
hello thanks for your great help how can we make this work in sequense please ?
@clasohlson4333
@clasohlson4333 3 жыл бұрын
Great tutorial, may I ask if we can draw Spline to move the objects in Cinematic Sequencer? Thanks a lot!
@aerth613
@aerth613 5 жыл бұрын
Thanks for the video. Can you suggest a way to intervene in this blueprint so that groups of objects can be spawned and follow the spline, or is this Blueprint limited to one object only? I understand using the delay here but I'm trying to get a hundred or so meshes moving and cannot manage that many indiviual blueprints! Many thanks.
@Cross1013
@Cross1013 5 жыл бұрын
I suppose you could have a "spawner actor" that simply runs through a ForLoop from 0-Howevermany BPs and on the loop you simply spawn the cart. You would have to give that spawner actor a reference to the track like you did the cart so it can then pass that reference on spawn to the carts it makes. Should be able to drag out of the return pin for the Spawn actor of type node you will need to use. and SetTrack to pass the value along. Hope that helps, and sorry for the late response
@DavidConstance
@DavidConstance 2 жыл бұрын
Awesome. So if I were to do Doombuggies (haunted mansion) how would I turn the carts towards a scene? As opposed to facing forward the whole time? I'm trying to figure out how to use trigger volumes but I'm kinda new at this
@philipsloth6600
@philipsloth6600 3 жыл бұрын
Does it work with Enemies too for example mannequin that will follow you? and try to attack
@doublecrossgames9355
@doublecrossgames9355 3 жыл бұрын
It will work on any actor but if you want a bad guy that follows you. You should take a look at the AI videos. I believe i made one where a guy patrols until he sees you then chases you
@yonas.seyoum
@yonas.seyoum 5 жыл бұрын
Hi there, thanks for the tutorial. Is it possible to make this work in the sequencer?
@Angry_Karakuri
@Angry_Karakuri 2 жыл бұрын
Thank you! Couldn't figure out why the timeline wasn't looping on my end. About 2 days in and I got a ton of stuff done but it's those tiny things here and there that I don't know, coming from Unity. lmao
@TriThom50
@TriThom50 2 жыл бұрын
Do you know why this method could potentially yield nothing to show up in the map at all? I just built it with a more complicated mesh, but nonethless still just a static mesh, but when I play the game I don't even see the mesh and obviously don't see any movement
@Soosane
@Soosane 3 жыл бұрын
Maybe I'm making a silly mistake but I don't have "get location distance along spline". It's not an option?
@KC-dj6el
@KC-dj6el 4 жыл бұрын
Is it possible, when the cart overlaps a collision, that the duration is changed? if yes how?
@Keln02
@Keln02 4 жыл бұрын
Great tutorial. Not exactly what I need, but very insightful
@pacificlinedesign19
@pacificlinedesign19 6 жыл бұрын
Thanks for the tutorial... Works like a charm. Quick question is it possible to make a object follow a spline and then transfer to a new spline. Kinda like a Y connection.
@pacificlinedesign19
@pacificlinedesign19 6 жыл бұрын
@@doublecrossgames9355 Thank you for the info.
@DurgasiMuralidhar
@DurgasiMuralidhar 4 жыл бұрын
Hi, I want to use car using spline for Auto parking assist is it possible to make could you help for this one
@BrianDiDomenico
@BrianDiDomenico 3 жыл бұрын
How would I make the object move back and forth? Thanks
@MrKingpin240
@MrKingpin240 4 жыл бұрын
Awesome video! But I have a problem where my actor only follows until the first point then restarts rather than traversing the whole spline, any tips?
@shallowpixels4855
@shallowpixels4855 3 жыл бұрын
SAVED MY LIFE
@ZimCrusher
@ZimCrusher 3 жыл бұрын
can this be used in VR? To control how the playerPawn moves? Rollercoaster, maybe?
@doublecrossgames9355
@doublecrossgames9355 3 жыл бұрын
Hey Fish Zom, short answer is yes, but you'd have to have set tracks where you'd want the pawn to move. Hope that helps
@ZimCrusher
@ZimCrusher 3 жыл бұрын
@@doublecrossgames9355 Gives me hope. Thanks.
@sanketvaria9734
@sanketvaria9734 3 жыл бұрын
How to do this with particles? Particles, not emitter. Both cascade and niagara.
@unrealmagedev
@unrealmagedev 3 жыл бұрын
Awesome tutorial, thanks man!
@bellVFX
@bellVFX 2 жыл бұрын
Is this works with Cinematic? or just playgame mode?
@mellstardust66
@mellstardust66 4 жыл бұрын
Very good sir, Thanks you for this golden education and explanation.
@ToTaLoVeR
@ToTaLoVeR 5 жыл бұрын
Cool tutorial, solves my problem, but how i can make actor move along spline but oposite direction ?
@mickypain2959
@mickypain2959 4 жыл бұрын
A bit late to the party, but here's my quick take for anyone still wondering in 2020... Unrelated to the issue: I moved setting playrate and time offset to the construction script, which allows me to preview the position of the cart and keeps the custom event cleaner.... Now for the reversing part... Option 1: 1) Add a public boolean to the cart called "reverse" (default off) 2) Rename "Move cart" custom event to "Move forward" 3) Create new custom event "Move Backward" 4) On Event play, add a new branch. Check for "reverse". True -> call custom event "Move backward" False -> call custom event "Move forward" 5) Plug in custom event "Move forward" in timeline>Play Plug in custom event "Move backward" in timeline>Reverse Option 2: 1) Create public boolean "Reverse" (default off) 2) Change "Move Cart" event as such: a) get bool "Reverse" and convert to float b) plug into float minus float node c) add alpha variable into second pin d) connect output to "absolute" node (basically to get it back to a positive value between 0 and 1) e) add output into lerp alpha Both seem to work fine, although I'm not technical enough to tell you which one is more efficient...
@sebastienclavel7603
@sebastienclavel7603 3 жыл бұрын
@@mickypain2959 or just use the reverse input on the Timeline ?
@mickypain2959
@mickypain2959 3 жыл бұрын
@@sebastienclavel7603 Sure, yeah. That works too. In that case, you'd need to add a switch or branch before the timeline to either play (from start) or reverse (from end)
@elfrat5516
@elfrat5516 3 жыл бұрын
Thank you for this super helpful tutorial! Can a similar process be used to animate a car? And is there a way to control speed and acceleration/deceleration?
@doublecrossgames9355
@doublecrossgames9355 3 жыл бұрын
Yes and yes, the speed you can adjust by changing the play rate of the timeline. If its an animation I would put box triggers along the road that on overlap change the play rate. You can use an "easing" node to make it smoother too. Hope that helps
@elfrat5516
@elfrat5516 3 жыл бұрын
@@doublecrossgames9355 I will have to try this out! Thanks so much!
@wgiesel
@wgiesel 4 жыл бұрын
Thank you for this tutorial. I use it to move several carts. But for some reason in certain parts of the spline it looks like the carts change speed, and for this reason distance between the carts change. Do you have any idea why this could happend? Thanks a lot in advance.
@VincentHLLim
@VincentHLLim 4 жыл бұрын
Thank you!! Just what I've been trying to find.
@briandreilly
@briandreilly 2 жыл бұрын
I couldn’t get this to work in 4.23 until I deleted the Set New Time module and connected the Set Play Rate to CartMover Timeline. Good tutorial though!
@abishekjoseph4758
@abishekjoseph4758 4 жыл бұрын
Can we control the speed of the cart by introducing a component with velocity?
@doublecrossgames9355
@doublecrossgames9355 4 жыл бұрын
Since we are setting the cart location speed is only controlled by the play rate of the timeline. You could easily adjust play rate during runtime using direct input or scripted events, though.
@danielgorton5862
@danielgorton5862 4 жыл бұрын
Hi just wondering how you got your cart to loop through the spline. In mine the cart reaches the end and just stops
@doublecrossgames9355
@doublecrossgames9355 4 жыл бұрын
Hey there! When editing the spline for the timeline, make sure to click the loop checkbox. That should do the trick if I remember correctly. Cheers!
@VirtualWorlds
@VirtualWorlds 4 жыл бұрын
@@doublecrossgames9355 I can't find LOOP checkbox! Where abouts exactly is it please dude? Thanks a million for a great tutorial mate!
@doublecrossgames9355
@doublecrossgames9355 4 жыл бұрын
Hey, the loop check box is inside the timeline curve interface. The box is at the top with the rest of the curve specific options. Near the "use last key frame" box we checked in the video.
@abishekjoseph4758
@abishekjoseph4758 4 жыл бұрын
I created the spline and the cart according to the tutorial, but the cart doesn't move when I play the simulation. Am I missing something?
@benhardwiesner6963
@benhardwiesner6963 4 жыл бұрын
Hey I have a question on performance of this method... desired spline location - actor location should give you a vector whiches look at rotation from a 0,0,0 vector also works as a rotation Input.... Is what I described easier on the performance than twice asking the spline?
@doublecrossgames9355
@doublecrossgames9355 4 жыл бұрын
Hey Weiser, I don't thing the performance impact would be much different in the end. However, you should be careful about using ActorLocation for the track actor since it refers to the scene component of the actor and not the actual location along the spline which is what you actually need.
@nobunaga8514
@nobunaga8514 5 жыл бұрын
I have a weird Issue with the DefaultSceneRoot displaying an error message when I hit play. I had to open the blueprint and change the Root for the Cart to movable. Is this the correct fix? Why didn't you have to set this?
@daredgamingstudios5516
@daredgamingstudios5516 4 жыл бұрын
Great Tutorial Guys Thanks Alot i was Wondering How could i add Multiple Diffrent targets to the same spline similar to something like Beat Saber could be a left right up or down block traveling on the same spline
@aaronalmeida1696
@aaronalmeida1696 4 жыл бұрын
Had a question like this for an interview, thanks man!
@raffaelemerone5768
@raffaelemerone5768 4 жыл бұрын
Thank you for the great tutorial! I have a question... is it possible move three or more object along the spline?
@muffininacup4060
@muffininacup4060 4 жыл бұрын
yep, in the beginning he showed 2 things glide alonv the spline - with this system just add more stuff to the spline and that's it
How To Make An Object Follow A Spline Path - Unreal Engine Tutorial
16:11
Unreal Engine 4 Tutorial - Splines - Moving Platforms
18:12
Ryan Laley
Рет қаралды 48 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Populating Meshes Along a Spline | Tips & Tricks | Unreal Engine
11:49
I Can't Believe NO ONE Is Talking About ChatGPT Assistants
6:50
Income stream surfers
Рет қаралды 10 М.
Camera Spline Track - ue4 Tutorial
14:44
DoubleCross Games
Рет қаралды 16 М.
Ue4 Tutorial - Stealth Vision Cone (Procedural Mesh)
24:33
DoubleCross Games
Рет қаралды 15 М.
This New AI is 430,000 Times Faster Than Reality (AGI Robots Soon)
8:37
Switch System - Ue4 Tutorial
18:22
DoubleCross Games
Рет қаралды 604
Landscape Road Spline Tutorial - Unreal Engine 4
10:08
Smart Poly
Рет қаралды 150 М.
Unreal Engine - Spline Path Animation Tutorial
7:49
Hangry Bunnies From Mars
Рет қаралды 63 М.
UE4 Tutorial: Cloth Simulation (See description)
7:24
underscore
Рет қаралды 141 М.