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

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

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

SparkViggeTarodevReece TaylorZak Kaioken 2Obvious DevSilentWisp GamesTarodevSpazyuTarodevAmp MunkeyAlamin KhalidLucas FreireTarodevLyrel Gamingbenjamin dehjooriyanTheSlimHimTheSlimHimTarodevcelu7361Testinsan severTomaz ZnidarkoKriss LooWietse PruijmpiePranjal MaithaniTarodev