Monster shadow

VIDEO

Sin and; Cos - Sine Visualized

Description:
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. I used 'Shapes' to make a few of these effects, you can check it out here: https://assetstore.unity.com/packages/tools/particles-effects/shapes-173167?aid=1011lkRxs ❤️ Become a Tarobro on Patreon: https://www.patreon.com/tarodev ========= 🔔 SUBSCRIBE: https://bit.ly/3eqG1Z6 🗨️ DISCORD: https://discord.gg/GqeHHnhHpz ✅ MORE TUTORIALS: https://www.youtube.com/tarodev
ADD A COMMENT

Spark
Sweet! Could you kindly make a tutorial on how to make tutorials? I meant the visual aspects as this looks like Primer or 3 Blue 1 Brown or Sebastian Lague. Thank you for always sharing short and valuble contents!
Vigge
I would like to se more of these type of videos, Good work!
Tarodev
Sure 😊
Reece Taylor
"What can you do with them" Spider-Man PS4 radio towers
Zak Kaioken 2
I like this alot i want to learn how to use unity's new film making sequencing tools + shapes to really drive this style video but idk how did you make this video? I'm looking forward to the potential "making of" video you were talking about with another commenter
Obvious Dev
Loved the visualization! And the content of course :) I totally need to get a hand on the Shapes asset.
SilentWisp Games
This music makes those demonstrations look epic af
Tarodev
It's beautiful, isn't it?
Spazyu
I thought this was a clash royale vid for a second just becuz of the font u used
Tarodev
They do have a monopoly on the font, but they don't own it, they just license it like me 😉
Amp Munkey
Is this the new Brackeys? 🤔 Seriously excellent work dude!
Alamin Khalid
Amazing visualization..
Lucas Freire
Why the clash of clans font tho
Tarodev
They use it, but it's not theirs
Lyrel Gaming
So fricking underrated!
benjamin dehjooriyan
Thanks for you short and interesting tutorials, i just want to know if there is a way to detect drawing words or shapes in unity? For example, i want to detect if you draw A letter or B with touch or mouse... Is there a way to detect it?
TheSlimHim
The examples given looked like sin might just be a slightly simpler way but could be achieved with a modulo. Or does sin also give smoothing?
TheSlimHim
@Tarodev yea thinking about it more, it's more than just a "slightly" simpler method. Using modulo would involve for loops as well. While not complicated, it's much simpler to just use a built in function!
Tarodev
If modulo ping-ponged, yes I suppose you could use it with a bit of wiggling. But it's like using a brick to hammer in nails... It'd work but why not just use a hammer? 🛠
celu7361
clash royale font
Test
Pleasant visuals. Would love to see you expand upon this type of video.
insan sever
very underrated channel, love you
Tomaz Znidarko
Nice presentation. Thank you.
Kriss Loo
I know (almost) all about sin and con, but I was so curious to see how you're gonna explain it and how you're gonna visualize it this time. Again, you nailed it :) enjoyed it twice already. Keep up the awesome work!
Wietse Pruijmpie
OMG THANKS, never understood where sin and cosine come from, i've only learned how to use it!
Pranjal Maithani
Love the polish you put in your presentations, are you using unity for creating these too?
Tarodev
This is all 1 long take in Unity 😊
SEE ALL COMMENTS


Transcript:

sine and cosine are trigonometry functions which return oscillating
values between 1 and negative 1. by feeding the function a climbing value
like time and setting our bowl's y position to the result it will smoothly
travel between the sine range if we add an offset to our time input we
can begin to observe the benefits sine provides
cosine yields similar results to sine but leads by 90 degrees where the hell
do these degrees come into it you may ask
well let me explain how these values are generated
meet the unit circle it's just a circle with a radius of one
let's say we input 225 degrees into both our sine and cosine functions take note
these functions actually take radians as input so we have to do a quick
conversion as you can see by combining both the
sine and cosine we can plot a point on the circumference of a circle
now if we once again use time as an input value it becomes quite apparent
how these beautiful waves are generated also take note of how the cosine wave is
offset by 90 degrees it's worth mentioning you can alter the
speed of the wave by simply multiplying the input value
you can also change the amplitude by multiplying the result of the function
all right so what can you do with them well you can obviously make waves in
circles but here are a few additional examples
[Music] if you want to see more visualizations
in the future subscribe also consider becoming a tarot bro on my
patreon link in the description alright see you next time
[Music] you