Did you enjoy this video? *Let me know* so I can continue to make awesome content for you :)
@VMEcycle63 жыл бұрын
Great tutorial.👍👍 Well I was working on something very similar six month ago. And I started with a similar approach. But then I realize that when some soldiers got killed in combat. Having other soldiers fill in the gap may trigger all the soldiers to swap their locations, thus will mess up your formation during combat. So I studied flocking algorithm. I let all the soldiers repelling each other, also having the formation "box" attracts all the soldiers. Then calculate a combined vector for each soldier which will determine where a soldier should move. It's kinda hard to have a perfect formation with this method, but it also came with some realism... sort of. Also if a soldier got killed, all you need is just shrink the formation box size to make a tighter formation.
@Tarodev3 жыл бұрын
@@VMEcycle6 you could also just cheat. When a unit dies, the positions are recalculated and the remaining units find the closest new position to them and walk to it.
@xanaramus3 жыл бұрын
Looks like phyllotaxis, that could be usefull too
@Tarodev3 жыл бұрын
@@xanaramus I had to google that. You're right, it does! You can find nature in everything :)
@gralcio2 жыл бұрын
It's amazing. Add such a mini-thing to your game lobby and no one will be bored waiting for challengers.
@sima199952 жыл бұрын
The attention to detail at 1:09 with the beat is just mind blowing.
@Tarodev2 жыл бұрын
I'm glad somebody finally appreciated that 😜
@arkobanerjee5166 Жыл бұрын
Yeah bro that is so cool
@libberator58913 жыл бұрын
I'm getting some slight Sebastian Lague vibes. I like it
@Tarodev3 жыл бұрын
Compliment of the highest calibur ♥️
@omega_dip_wod3 жыл бұрын
Wow this man puts out banger after banger
@Tarodev3 жыл бұрын
Thanks my guy
@jugibur21173 жыл бұрын
Wow, good job, so much in the way of settings. I don't need something like that right now, but it was interesting to see how you implemented it. Thanks for that!
@Tarodev3 жыл бұрын
😊
@makoto4541 Жыл бұрын
Looking for radial instantiation and your video was quite low on the recommended list, but as soon as I saw it was from you, I ignored all other videos and went straight to this one. Your content is reliable, the code is generic, the possibilities are extensive and the explanation is concrete. I find myself often checking first if you have covered the topic before looking elsewhere. Thank you
@Tarodev Жыл бұрын
High praise 🙏 thanks for being a supporter
@cyqry3 жыл бұрын
Looks good as far as function goes and the presentation really nice too. I'm working on a squad-based game and I got to say procedural formations are damned hard so kudos for this. Only thing that comes to mind for improvements is cleaning up how the formation reforms when characters are added or removed. I could never figure out how to improve it and it always felt weird seeing characters sprint from one end of the line to the other instead of just bolting onto the closest end.
@Tarodev3 жыл бұрын
So true. Ideally it should detect if any units are close to a new position and re index them to save long walks. Or at the very least give the unit a speed boost when reforming...
@cyqry3 жыл бұрын
@@Tarodev For sure. Reindexing sounds like the way to go in this case, I will give that a go on my project when I get some spare time and see how well it works.
@TheDarkranium3 жыл бұрын
You can try the Hungarian Algorithm to assign positions so they don't cross over each other's path.
@cyqry3 жыл бұрын
@@TheDarkranium I'll look into it, thanks.
@makra420693 жыл бұрын
your videos are ASMR to the ears
@TREXYT Жыл бұрын
you cant imagine how helpfull you are! thanks friend!
@sherazali34144 ай бұрын
Awesome Man!!!!!!!!! Watched it when you released it, and today watching again when I need it :D Thank You!
@Tarodev4 ай бұрын
@@sherazali3414 been around all this time, aye? 😊
@honokiii2 жыл бұрын
I am looking for a crowd formation method for my current project and saw this. It is not what I am looking for but it is so interesting! Thank you for the idea!
@tomkc5162 жыл бұрын
This video was extremely visually appealing.
@Tarodev2 жыл бұрын
Thanks Thomasssssssss
@_dr_crusher Жыл бұрын
Awesome video - was hoping to see more about the Uniform functionality and the movement you have in the video. Not seeing it in the scripts though. Thanks for your time!
@lonebeaver95352 жыл бұрын
Woah I just came here from your reddit post. I just got done implementing box formations in my game and your algorithm is so much more elegant than mine and I was wondering how to achieve radial formations thank you very much!
@youcancallmedoggie3 жыл бұрын
this is awesome! Please keep doing what you doing. Your content is simply amazing.
@basicdogtrainings93893 жыл бұрын
Hey bro thanks for creating this video because i am a solo developer and i need this things so far,thanks TaroDev 😀
@Tarodev3 жыл бұрын
Glad you enjoyed it! ❤️
@basicdogtrainings93893 жыл бұрын
@@Tarodev Thanks
@zZLibikiZz Жыл бұрын
this is simply amazing!
@NekomGiorgio3 жыл бұрын
Really great, thank you!
@_dr_crusher Жыл бұрын
Or alternatively, maybe a little insight as to the best way to move around the whole group the same way that you went about it. Super appreciated! Thank you
@shenshaw53457 ай бұрын
did you ever figure this out?
@TREXYT7 ай бұрын
hi, there is an annoying bug where when there is around 17 players or more and you set up _rings to 2 in the inspector then _amount value change every +2, why that ? radial formation is not centred, please fix bro, thanks!
@rhow97243 жыл бұрын
Fun video, thanks!
@itzmrjerry70672 жыл бұрын
Great video! and thanks alot for this amazing script but i do have one problem in your video you talk about the toggle for uniform armys but i can't seem to find it. Could you help me with this?
@castlecodersltd Жыл бұрын
Brilliant video. Thanks for sharing ☺
@bluzenkk2 жыл бұрын
you are awesome... i was trying to archeive the same thing a year ago but failed.. Thanks~~
@germiyanbey12 жыл бұрын
How to rotate the Formation, any ideas? When I rotate transformY of ExampleArmy (or UnitParent), the formation is overridden to stay same.
@germiyanbey12 жыл бұрын
Okay, I found out, change each transform.position to transform.localPosition in Line 44 (that starts with "_spawnedUnits[i].transform.position") in ExampleArmy.cs. The formation will rotate properly by rotating Y of Example Army gameObj.
@am-apps-games3 жыл бұрын
Many thanks for this one! Really usefull!
@Tarodev3 жыл бұрын
Glad it was helpful!
@YuriNoirProductions2 жыл бұрын
Do you have any video where you explain how you actually made the individual units wobbly? i only know the concept of having a animated unit and a physical unit that tries to mimic the first one but i have little to know idea how to execute it
@spark-games-uk2 жыл бұрын
I love the reference to the I'm a legend zombies gathering in the dark scene haha! ps. you're a Legend ;)
@TheKr0ckeR2 жыл бұрын
Wow... thats... incredible... i mean..the presentation is UBER-SUPER MEGA COOL.
@Tarodev2 жыл бұрын
Thanks pal :)
@manji20233 жыл бұрын
Pretty interesting.
@talha5930 Жыл бұрын
Amazing tutorial thumbs up for this 😊
@Malryni Жыл бұрын
OMG man, I love u So awesome script
@hakankosebas2085Ай бұрын
awsome, this can be improved like mobile game tactile wars formation where you draw by hand and army shaped by drawed lines, also path drawing can be added where you draw a path and unit rotate and walk according to that path like in total war games, please do these suggestions, I need tutorial of them
@awsbasim82402 жыл бұрын
How do you make the whole formation move How do u add pathfinding to it
@LeviAckerman-xt7dx3 жыл бұрын
This actually looks fun. Can I use this for my commercial mobile game?
@Tarodev3 жыл бұрын
Yup, use any code I release :) Let me know if you make anything cool!
@vaibhavjaiswal7993 жыл бұрын
Can you give a step by step tutorial of this
@1716946 ай бұрын
Amazing!
@denis4096 Жыл бұрын
The character asset/model is great. Where can I get that?
@hyperv475811 ай бұрын
great video how you are avoiding collision between them? or this is not there?
@JitendraKumar-xv4kt2 жыл бұрын
Die-hard fan of you 🙌
@fortnitegiftcard85412 жыл бұрын
I’m trying to make a flying game, how could I change the height of the ai plane in formation to make it look realistic and not a massive straight line
@shirosurfer88643 жыл бұрын
What's the animation style name of the wiggly guys
@rikii72372 ай бұрын
how did you achieve uniform ?
@aweramu71073 жыл бұрын
Your Fonts is very cool? What is name your text fonts bro.
@Tarodev3 жыл бұрын
The thin font is simply called 'Blueprint'. The chunky boi is called "Bluprint", without the e. Very imaginative names :P
@kukisj27523 жыл бұрын
Sorry, but these little guys and their sacrifices have stolen the show ;) I just miss to see them dancing in circles at the end. Great content!
@Tarodev3 жыл бұрын
They blow themselves up for your entertainment
@adil00282 жыл бұрын
Tarodev, could you provide the shader you used? Or atleast make a tutorial on it? I've been trying to make a game using an art style similar to that, but haven't figured it out yet.
@ТестТест-в3ъ6 ай бұрын
Now we can make own Total War)))
@tubephega3 жыл бұрын
go lil chibby go!
@MSI2k2 жыл бұрын
What's the music 2:50 and onwards?
@LinhNguyen-zt3mg2 жыл бұрын
so great (heart)!
@mayhem50362 жыл бұрын
Great vid, I'm wondering if you could add a flocking componet and would that be ideal to stop clipping between models?
@eminalgul16783 жыл бұрын
Hello!! Thanks for video ,really useful . How should we write a code to add 1 object to the army?
@Tarodev3 жыл бұрын
Do you mean add more units? The code I provided should do that for you right out of the box :)
@prietinho66902 жыл бұрын
Do you know where I can download these types of materials to prepare your playtesting scene? I mean the blue boxes ty
@kamolovfintch8341 Жыл бұрын
Great video! and thanks alot for this amazing script but i do have one problem in your video you talk about the toggle for uniform armys but i can't seem to find it. ❤❤❤❤❤❤❤❤
@SykerElRulas10 ай бұрын
Hii , i would so cool if one unit dies, the formation reorganizes to fill the gap , im trying it but so far im not geting it
@braindead28137 ай бұрын
I am not following where is the instantiate() function?
@lemuelapperson8533 жыл бұрын
They're not wear pants? JK This is very cool. Part of the radial patterns you were seeing is a known math phenomenon. It gives rise to such things as Moiré patterns.
@Tarodev3 жыл бұрын
They need to run free 😉 Just googled Moiré patterns, very interesting!
@archamondearchenwold80843 жыл бұрын
feels like u could turn these into RTS unit formations
@Tarodev3 жыл бұрын
It would be fun commanding these floppy little guys
@Conquership2 жыл бұрын
thats what im trying to do!
@bio173 жыл бұрын
I like your concise implemetation. Can I ask you why it's better to return an IEnumerable instead of a List in the script BoxFormation?
@Tarodev3 жыл бұрын
It simply gives you more performance options. For example you may only want to grab 3 positions, or just loop the first 5. Keeping it an ienumerable means you can simply grab 5 and stop the loop without it grabbing every position. I have a video coming out about ienumerable if that is a little bit confusing.
@bio173 жыл бұрын
@@Tarodev thanks. I'm eagerly waiting for your video about this!
@lanzheng0728 Жыл бұрын
do you mind share the source code in patreon?
@Tarodev Жыл бұрын
I have the formation source code in the description my man. Or are you after something else?
@lanzheng0728 Жыл бұрын
@@Tarodev yes,i'm pretty interesting the chalk mark style UI, how did u with that ?
@Tarodev Жыл бұрын
@@lanzheng0728 that's as simple as a textmeshpro laid flat on the ground 😊
@lanzheng0728 Жыл бұрын
@@Tarodev 😂sure
@moetsi71222 жыл бұрын
Awesome video! where is the link to the source code?
@whidzee2 жыл бұрын
How hard would it be to take this and make it into a basic sporting game? I'm thinking something like rugby where the defensive team always retreats back 10m and stands in a line and then moves forwards roughly together
@Abdulwahab-vb6he2 жыл бұрын
cool!
@Tarodev2 жыл бұрын
You're cool :)
@mtouseef18213 жыл бұрын
Hey do you know you are awsome :)
@Tarodev3 жыл бұрын
I do now 😊
@DrHeinzDoofenshmirtz2 жыл бұрын
Is this using the NavMesh system? Please tag me if someone answers :)
@asinzhang87913 жыл бұрын
i‘m more intrested on transtion that parameter changed
@Tarodev3 жыл бұрын
Sorry, what do you mean?
@romazriaz51412 жыл бұрын
Damn🔥
@devlasutriv2 жыл бұрын
Someone send this to AOE IV devs.
@bluzenkk2 жыл бұрын
oh, you forgot to make a triangle formation.
@Tarodev2 жыл бұрын
Ohhh, that would have been fun
@publicalias81729 ай бұрын
The only problem is this just scales with rows and columns, not individual units added/removed.
@Tarodev9 ай бұрын
There are more problems than that, I can assure you. This is just a nice little starting point 😊
@guru-gamess3 жыл бұрын
I done something like this 1 month ago...worse and less powerful