Sine Waves Visualized

Learn how to use sin and cos waves. I use unity here but, but the math is agnostic
Sine and Cosine are fundamental to game development. Once you understand how Mathf.Sin and Mathf.Cos work, you'll find yourself reaching for them all the time. You can create circles and waves, make things hover, create orbits, add enemy behavior, etc.
REUPLOADED: My original voiceover was horrible quality and quite cringe. I also wanted to fix the low bitrate.
I used 'Shapes' to make a few of these effects, you can check it out here: assetstore.unity.com/packages...
❤️ Become a Tarobro on Patreon: / tarodev
=========
🔔 SUBSCRIBE: bit.ly/3eqG1Z6
🗨️ DISCORD: / discord
✅ MORE TUTORIALS: / tarodev

Пікірлер: 155

  • @mailmaxxxx
    @mailmaxxxx2 жыл бұрын

    I would love to see a "how I made my visualisations" video. Also, Quaternions

  • @beng2620

    @beng2620

    2 жыл бұрын

    Yess those would be great

  • @devhive420

    @devhive420

    Жыл бұрын

    Big agree

  • @justcore

    @justcore

    Жыл бұрын

    definitely

  • @gregridd

    @gregridd

    Жыл бұрын

    I was about to write Quaternions, not sure if I'm missing a trick with them or not.

  • @Uebermensch03

    @Uebermensch03

    Жыл бұрын

    Please!!

  • @ewwitsantonio
    @ewwitsantonio2 жыл бұрын

    Great work! I'd love to see an extended demonstration on different waveforms. Such as square, sawtooth, triangle, and manipulating them further to get very specific patterns. Introducing noise to randomize Y. Anyway, great video! Love your content. Beautifully designed :)

  • @SubjektDelta

    @SubjektDelta

    2 жыл бұрын

    let's make an open source digital synthesizer in unity!

  • @ewwitsantonio

    @ewwitsantonio

    2 жыл бұрын

    @@SubjektDelta I want that so badly! There are a number of unity synths out there but each have their drawbacks - the best in my opinion being Audio Helm. Audio Helm is an amazing asset, but it is no longer being supported from what I can tell. I'd love to make an open source project loosely based on Audio Helm. Helm (the synth itself, not the unity plugin) is already open source, although I don't know what the legality would be in terms of building an open source native audio plugin in unity for the open source Helm -- that in effect replaces Audio Helm... I would gladly help an open source project for this, BUT my DSP skills are... non-existent at this point. I can learn. :) I would even love to find a way to fund the project and pay some developers to help get the ball rolling. (I'm not rich, don't @ me, lol)

  • @PitiITNet
    @PitiITNet2 жыл бұрын

    Amazing short video! I just love your animations. Seriously, one of the most beautiful ones on youtube. :)

  • @friedcrumpets
    @friedcrumpets2 жыл бұрын

    What a great visualisation! Always a fan of your videos, very unique and creative ways to explain these topics to devs. Thank you!

  • @Redsilver2
    @Redsilver22 жыл бұрын

    Very useful functions. Thanks for the visual presentation.

  • @francescagreetham1804
    @francescagreetham18042 жыл бұрын

    You’re so cool. This was amazing. Short, snappy and beautiful

  • @theReimy
    @theReimy2 жыл бұрын

    This is top level production quality. Great work!

  • @PixelBlight
    @PixelBlight2 жыл бұрын

    Such a great and beautiful example of how math can be so fun to play around with! 👏 Understanding the unit circle helped tremendously with school trigonometry, because our teacher only mentioned it like one time for some dumb reason haha.

  • @Brovadio
    @Brovadio2 жыл бұрын

    you're really great my man, every video you make is just amazing

  • @manimuridi
    @manimuridi Жыл бұрын

    It would be awesome if you can make a guide on how you created these visualizations. Great content and I love these series! Thank you.

  • @Skeffles
    @Skeffles2 жыл бұрын

    Excellent visualisation of how they map to circles!

  • @qiangpanchen6785
    @qiangpanchen67852 жыл бұрын

    Thank you ! I was just searching about sine wave yesterday 😸

  • @palopalo8359
    @palopalo8359 Жыл бұрын

    Wow lot of quality, you definitely deserve more subs.

  • @Rovsau
    @Rovsau2 жыл бұрын

    Great teaching material!

  • @BillGeek
    @BillGeek2 жыл бұрын

    This visualization is epic, thank you so much!!! Finally, 15 years after high school, the sin function makes sense to me! (teacher back then didn't do a particularly good job at explaining things...)

  • @jugibur2117
    @jugibur21172 жыл бұрын

    What a cool and informative animation, that makes it clear to me. Math always fascinates me, but unfortunately I am not very talented in understanding everything intuitively. Thanks!

  • @notDiru
    @notDiru2 жыл бұрын

    Amazing job as always

  • @michaelnawrocki7913
    @michaelnawrocki791310 ай бұрын

    That makes so much sense with the visuals. However, I would love to see a practical demonstration on like a coin or jewel for us to follow. Keep up the great work 👍

  • @sonu-jangir
    @sonu-jangir8 ай бұрын

    Very very helpful video, and background music too...🎉

  • @dosuserx
    @dosuserx2 жыл бұрын

    short and sweet. great work.

  • @clavesi
    @clavesi2 жыл бұрын

    waveforms can be so simple but so useful, it's really amazing.

  • @perttihakala9847
    @perttihakala9847 Жыл бұрын

    Wow wow wow, super nice and high quality content! Wow!

  • @waitingforgodot355
    @waitingforgodot3554 ай бұрын

    Nice one dude. Thanks.

  • @Arda-bj4ku
    @Arda-bj4ku2 жыл бұрын

    Very cool visualization! Gives me Freya Holmer vibes.

  • @limbo1n
    @limbo1n2 жыл бұрын

    I've done the rippling array of objects before with wave functions for sure. I also like to apply a wave function to Quaternion.AngleAxis and have the objects pitch as if riding the surface of the waves.

  • @Tarodev

    @Tarodev

    2 жыл бұрын

    That's cool!

  • @Terrarus_
    @Terrarus_10 ай бұрын

    The animation is really smooth and nice, how did u learn to edit like that? Would you recommend a course?

  • @apubetico
    @apubetico2 жыл бұрын

    beautifull, keep going

  • @ConstantDerivative
    @ConstantDerivative2 жыл бұрын

    Amazing video.

  • @dragovscar
    @dragovscar11 ай бұрын

    Are you kidding me i wasted like 1 hour to calculate bobbing and stuff and this gets recommended after all that work

  • @Tarodev

    @Tarodev

    11 ай бұрын

    Lol

  • @fleity
    @fleity2 жыл бұрын

    Fantastic Visualization

  • @ragerungames
    @ragerungames2 жыл бұрын

    Great video. Looks like a sine movie trailer :P

  • @ShinichiKudoQatnip
    @ShinichiKudoQatnip2 жыл бұрын

    Why is this so satisfying yet exciting at the same time???? What magic is this????? What music is thisssss??????????

  • @Aqua-Ash
    @Aqua-Ash3 ай бұрын

    *The most inspirational music I've ever heard Taro: "Ight, see ya"

  • @Tarodev

    @Tarodev

    3 ай бұрын

    I'm not known for my elegance

  • @falricthesleeping9717
    @falricthesleeping9717 Жыл бұрын

    BEAUTIFUL

  • @RaonCreate
    @RaonCreate2 жыл бұрын

    Nice one

  • @jozimastar95
    @jozimastar952 жыл бұрын

    I'm i the only one who respect cos more?

  • @Volt-Eye.

    @Volt-Eye.

    6 ай бұрын

    You are not alone

  • @thegiganerd395

    @thegiganerd395

    3 ай бұрын

    You are not alone

  • @jestersb-

    @jestersb-

    Ай бұрын

    not lone

  • @rashidfarhan6223
    @rashidfarhan62232 жыл бұрын

    You're my favorite unity content creator bro ❤️

  • @Tarodev

    @Tarodev

    2 жыл бұрын

    High praise brother 🙏

  • @MysticRiverGames
    @MysticRiverGames Жыл бұрын

    I wish someone show me this when I was in school learning this, it would have made a big difference!

  • @hontema

    @hontema

    11 ай бұрын

    bro you had a bad math teacher? they don't teach you this?

  • @MysticRiverGames

    @MysticRiverGames

    11 ай бұрын

    @@hontema They teach me the basics but visualizing math the way is presented here is quite different from using a simple whiteboard drawing, finding a use for it besides a text book problem is quite different story, you just solve it because is homework, if I had seen this when I was in school, I would have used it for game development at that time, though computers were not as fast as today's computers, I am talking more than 40 years ago.

  • @n1ppe

    @n1ppe

    7 ай бұрын

    At least where I'm from they use quite a lot of computer visualisations and programs when teaching math in high school nowadays. Barely any math is done on paper.

  • @Chrisbrei2502
    @Chrisbrei25022 жыл бұрын

    Yooo, beautiful!

  • @Dwarph
    @Dwarph2 жыл бұрын

    Awesome vid! Wish you'd shown more practical applications though :(

  • @rathodketan5551
    @rathodketan55512 жыл бұрын

    yes please create tutorials

  • @nishantmehta9701
    @nishantmehta97018 ай бұрын

    thanks man

  • @mr_crapto
    @mr_crapto2 жыл бұрын

    Damn that's incredible 🥶

  • @UberDragon
    @UberDragon10 ай бұрын

    My best use of sine/cosine is certainly for text. Using both their circle and wave attributes, I give the text a fake 3d effect, by rendering many layers of the same text above each other, slightly offset as well as a grow/shrink pulse. For a final effect I render the very front and very back layers in a different color, with the layers in between transitioning between the two. The final result gives a very believable 3d effect. Imagine it like some microsoft word headline word art, but it's animated and not afraid to show you all its sides over a certain timespan.

  • @Tarodev

    @Tarodev

    10 ай бұрын

    I'm picturing that now. Cool technique

  • @ahnng
    @ahnng2 жыл бұрын

    Look like a mistery knowledgeable video that can change your whole perspective.. humh... Just simply like it

  • @darkfrei2
    @darkfrei2 Жыл бұрын

    You are awesome as math!

  • @jigarpanchal0
    @jigarpanchal0 Жыл бұрын

    how do you create such a eye satisfying visuals in Unity man just how....

  • @beansze4940
    @beansze4940 Жыл бұрын

    Thank you very much I learned a lot from this video but, possible make camera bobble effect?

  • @YasserSedrati
    @YasserSedrati2 жыл бұрын

    Let's forget about development for a sec, and ask you to make a video showing how you make those beautiful explanation video parts.

  • @Tarodev

    @Tarodev

    2 жыл бұрын

    Good idea. I'll add it to the list

  • @windwalkerrangerdm
    @windwalkerrangerdm2 жыл бұрын

    YEESSSS AWESOME!

  • @arpitsrivstva
    @arpitsrivstva Жыл бұрын

    Lubb you mann!!

  • @mrpancakeguy
    @mrpancakeguy Жыл бұрын

    This is great.

  • @AliRaza-qn9hi
    @AliRaza-qn9hi2 жыл бұрын

    Great work! Tarodev would you please make a video on multiplayer using photon Fusion. I really love your videos.

  • @Tarodev

    @Tarodev

    2 жыл бұрын

    I'm making one now about Unity netcode (it's better in my opinion!)

  • @versacebroccoli7238
    @versacebroccoli7238 Жыл бұрын

    Thank you! I came across these functions in the panda3d turtorial and I wanted to know how they are being applied.

  • @rathodketan5551
    @rathodketan55512 жыл бұрын

    super ❤️

  • @mohammadebrahim4038
    @mohammadebrahim40382 жыл бұрын

    we would like to know how to create this kind of videos. did you use manim? or you created it only in unity? or other softwares? appreciated

  • @MrAiryng
    @MrAiryng2 жыл бұрын

    Cool video. Watched twice.

  • @arcday4281
    @arcday42812 жыл бұрын

    Cool !

  • @ItsMeHelel
    @ItsMeHelel2 жыл бұрын

    Taro, I've been following your videos for some time now and, well, they are amazing. Considering you are a human being as well, and you need money to live, and feed them kids (help) hehe, have you considered creating a course? I know you already have a patreon, but those should not be mutually exclusive, you know. Just an idea, cause I'd probably buy everything you would think interesting to teach =)

  • @Tarodev

    @Tarodev

    2 жыл бұрын

    Thank you Helel

  • @ragerungames
    @ragerungames2 жыл бұрын

    Be my maths teacher please

  • @Radek_M.
    @Radek_M.2 жыл бұрын

    Quality video.

  • @goneman2195
    @goneman2195Ай бұрын

    Make more of these videos plz

  • @downstream0114
    @downstream01142 жыл бұрын

    I wonder how it's implemented internally and if there's any point optimizing it.

  • @Ghost300dev
    @Ghost300dev8 ай бұрын

    Aprendi em um video de 2min o que não aprendi em 14 anos de escola. Obrigado!

  • @Tarodev

    @Tarodev

    8 ай бұрын

    You're welcome! :D

  • @random_precision_software
    @random_precision_software Жыл бұрын

    Is there any chance of you doing a 80s style scrolling text..ie like in the C64 and Amiga demos? And do you know how to do a 2D pseudo pole position style road?

  • @NimproductionsYT143
    @NimproductionsYT1434 ай бұрын

    🎵We don’t talk about Tangent nonono. We don’t talk about tangent~🎵

  • @question_mark
    @question_mark2 жыл бұрын

    juicy mafs

  • @ibrahimrashwan
    @ibrahimrashwan2 жыл бұрын

    This is totaly awesome and every thing but.... Dude, where's the quaternion video😢

  • @hazeedevs3880
    @hazeedevs3880 Жыл бұрын

    Can you please explain quaternions using visualizations please?

  • @Tarodev

    @Tarodev

    Жыл бұрын

    You son of a biscuit 🍪

  • @quantinium2027
    @quantinium20272 жыл бұрын

    Mr.Taro, it would be great if you teach us how to visualize these awesome patterns using Unity or other applications. thanks a lot.

  • @mohammadebrahim4038

    @mohammadebrahim4038

    2 жыл бұрын

    yeah we would like to know how to create this kind of videos

  • @n1ppe

    @n1ppe

    7 ай бұрын

    He is using splines which is an Unity asset. It costs a 100$ but is currently on sale

  • @fuzzy-02
    @fuzzy-02 Жыл бұрын

    "meet the unity circle" ... and the tragedy that would last for years, from school to highschool and the not college... has begun.

  • @ishan9050
    @ishan90502 жыл бұрын

    When is the code profiling video coming?

  • @vijaydeshwal6464
    @vijaydeshwal64642 жыл бұрын

    Which Software do you use to make this animations ?

  • @pr0_mt
    @pr0_mt2 жыл бұрын

    I have a question, did u make the video using unity :O? (Animations)

  • @Tarodev

    @Tarodev

    2 жыл бұрын

    Yup, unity using the Shapes library (link in desc)

  • @random_precision_software
    @random_precision_software Жыл бұрын

    I've commented off what id like see next but there was no reply ?! Id like the next step in sin waves creating wavy text messages

  • @bruhhhhhh7961
    @bruhhhhhh7961 Жыл бұрын

    For the robot example near the end, did you use inverse kinematics?

  • @Tarodev

    @Tarodev

    Жыл бұрын

    I do indeed!

  • @Tarodev

    @Tarodev

    Жыл бұрын

    kzread.info/dash/bejne/omWtsZage7SvXaw.html

  • @random_precision_software
    @random_precision_software Жыл бұрын

    I dont know if your old enough to remember C64 & Amiga DEMO'S? but they all had wavy scrolling text ..can you do a video on how to do that with text mesh Pro ? Thnx

  • @bakinto
    @bakinto Жыл бұрын

    Neat

  • @Kraaven2026
    @Kraaven20265 ай бұрын

    So, interestingly, i also wanted to visually represent sin waves like this. And so i had to deduce all this myself. How i figured out all these properties? I literally putted up the desmos graphong calc website, wrote the sin function, and started playing with it 😂

  • @zeeshansattar4531
    @zeeshansattar45312 жыл бұрын

    Cross and Dot product , btw is it "Shapes" asset made by ferya holmer?

  • @Tarodev

    @Tarodev

    2 жыл бұрын

    Yup that's the one. I have a visualization on cross product, go check it out :)

  • @zeeshansattar4531

    @zeeshansattar4531

    2 жыл бұрын

    @@Tarodev oh I didn't know that you already made this, thanks will check it out now :)

  • @anna_silver_moon
    @anna_silver_moon2 жыл бұрын

    I'm sorry, but I've already seen a video about sines and waves on your channel. I was looking for a way to make text wave animation. Found this on another channel, but I always start my search in yours.

  • @JW-uu9je

    @JW-uu9je

    2 жыл бұрын

    nothing wrong with reviewing information again but with different perspectives and animations...I actually appreciated the remake. Like how many times will they remake Batman?? FOREVER, and you will be ok. Tarodev can do no wrong!

  • @anna_silver_moon

    @anna_silver_moon

    2 жыл бұрын

    @@JW-uu9je Animations same. Totally same video )))

  • @JohnKNMurphy-nz
    @JohnKNMurphy-nz2 жыл бұрын

    Just curious, I had a look at Shapes because what you created looks so great, but it doesn't look to do curves (like Sine) am I missing something?

  • @Tarodev

    @Tarodev

    2 жыл бұрын

    What you're seeing is about 1000 points jointed together to make a smooth line ;)

  • @JohnKNMurphy-nz

    @JohnKNMurphy-nz

    2 жыл бұрын

    @@Tarodev Thanks, I'd love to see how you approach that as I'm interested in finding effective ways to apply Unity to create interactable Math/Physics demos graphs/ overlay content. e.g. so people could walk around an experiment in VR and see plots in HUD. Shapes drawing looks so good and it would be great to get pointers on clean ways to extend it into doing things like graphs but I'm not sure where to start. e.g. do you base it on Shapes polyline?

  • @supertenchoo4271
    @supertenchoo42712 жыл бұрын

    I would love to see the visula of the object contact how object determine if player hit a brick in button edge just like super Mario brother when hit break I want to understand that concept fo long time.

  • @patchfury
    @patchfury2 жыл бұрын

    Add some thyme to that sine

  • @Alison-cj4pj
    @Alison-cj4pj2 жыл бұрын

    It was good.

  • @gamedevbaiyi936
    @gamedevbaiyi9362 жыл бұрын

    AAAAwesome

  • @iiropeltonen
    @iiropeltonen2 жыл бұрын

    Procrastinating on that Quaternion video ha? 😃

  • @Tarodev

    @Tarodev

    2 жыл бұрын

    You kill me 😭

  • @iiropeltonen

    @iiropeltonen

    2 жыл бұрын

    Just started learning C# and Unity so need all the help I can get 😃

  • @question_mark
    @question_mark2 жыл бұрын

    I would like to visualize the 28th dimension uwu

  • @Sugarmasters
    @Sugarmasters10 ай бұрын

    What does this have to do with game development?

  • @mice2188
    @mice21882 жыл бұрын

    Quaternionnnnnnn 😩

  • @mice2188

    @mice2188

    2 жыл бұрын

    When

  • @avshkabura
    @avshkabura2 жыл бұрын

    Awesome! Hello from Ukraine)

  • @Tarodev

    @Tarodev

    2 жыл бұрын

    Hello :) Stay safe buddy

  • @yalong7914
    @yalong7914 Жыл бұрын

    cool

  • @Tarodev

    @Tarodev

    Жыл бұрын

    is it though?

  • @yalong7914

    @yalong7914

    Жыл бұрын

    @@Tarodev Yeah, these animations make it a little bit more intuitive to understand trig functions.

  • @Betruet
    @Betruet2 жыл бұрын

    Listening on headphones. Sexy voice. Great content

  • @Tarodev

    @Tarodev

    2 жыл бұрын

    :D

  • @TheClanFollows
    @TheClanFollows Жыл бұрын

    Only taking Radians and rotating counter-clockwise is scummy as it is

  • @jitendrachauhan9837
    @jitendrachauhan98372 жыл бұрын

    Cross and Dot product

  • @Tarodev

    @Tarodev

    2 жыл бұрын

    I have a cross product video :)

  • @jitendrachauhan9837

    @jitendrachauhan9837

    2 жыл бұрын

    @@Tarodev Please share the tool name of the video editor and in which you create animation. You are awesome in the presentation. Hats off

  • @Tarodev

    @Tarodev

    2 жыл бұрын

    @@jitendrachauhan9837 I use shapes. Link in the description 😊

  • @gareths
    @gareths2 жыл бұрын

    I’m starting to believe that no one knows what quaternions are

  • @Tarodev

    @Tarodev

    2 жыл бұрын

    lol... soon >

  • @codingidiot6754
    @codingidiot6754 Жыл бұрын

    quaternions 100%

  • @schwarzerritter5724
    @schwarzerritter572410 ай бұрын

    So... sine makes you a better game developer, because it improves idle animations?

  • @doismilho
    @doismilho2 жыл бұрын

    "tarobro" is a terrible name imo. Love your content though. xD

  • @amac333
    @amac3332 жыл бұрын

    nerd

  • @Tarodev

    @Tarodev

    2 жыл бұрын

    You're right :(