Vector3.Cross provides you with the cross product of two vectors. Vector3.Cross is easy to understand, but sometimes hard to find applicable uses for when just starting out.
I'll teach you what a cross product is, how to use vector3 cross, and a real-world use case for it (all in 90 seconds!)
I used 'Shapes' to make a few (most) 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
Vector3.Cross official description:
Cross Product of two vectors.
The cross product of two vectors results in a third vector which is perpendicular to the two input vectors. The result's magnitude is equal to the magnitudes of the two inputs multiplied together and then multiplied by the sine of the angle between the inputs.

let's say we have two directions a and b we can find the cross product of these

vectors by calling vector 3 cross using both a and b as inputs

the cross product will always be perpendicular to both vectors

a quick way to mentally work out the cross product is by using the left hand

rule if you point your thumb and index finger

in the directions of a and b your fu finger will be equal to the cross

product vector3 cross has a wide range of practical uses in engineering and

game dev but let's just use the simple example of

rolling a cube assume the user pressed down

we need to work out the correct rotational axis to perform the roll

vector3 cross gives us an easy way to calculate this

for our second input we'll use vector3 up this will be our constant to ensure

the queue rolls correctly regardless of direction or current cube rotation

for the first input we'll use the direction of the user input so in our

case vector three back the cross product will always be perpendicular to both

inputs which gives us a direction pointing down the x-axis

now we know we need to rotate our cube on the x-axis

so to summarize if you know up and you know which direction you'd like to

rotate it's easy to work out the rotational axis using the cross product

alright i hope you found this fun and informative subscribe if i made you

stick your left hand in the air like a doofus or if you'd just like to see more

of these fun little visualizations subscribe anyway

alright see you later

vectors by calling vector 3 cross using both a and b as inputs

the cross product will always be perpendicular to both vectors

a quick way to mentally work out the cross product is by using the left hand

rule if you point your thumb and index finger

in the directions of a and b your fu finger will be equal to the cross

product vector3 cross has a wide range of practical uses in engineering and

game dev but let's just use the simple example of

rolling a cube assume the user pressed down

we need to work out the correct rotational axis to perform the roll

vector3 cross gives us an easy way to calculate this

for our second input we'll use vector3 up this will be our constant to ensure

the queue rolls correctly regardless of direction or current cube rotation

for the first input we'll use the direction of the user input so in our

case vector three back the cross product will always be perpendicular to both

inputs which gives us a direction pointing down the x-axis

now we know we need to rotate our cube on the x-axis

so to summarize if you know up and you know which direction you'd like to

rotate it's easy to work out the rotational axis using the cross product

alright i hope you found this fun and informative subscribe if i made you

stick your left hand in the air like a doofus or if you'd just like to see more

of these fun little visualizations subscribe anyway

alright see you later

Tughlok SiddiqueeTarodev우김DArKdandandanSilentWisp GamesmazetarTarodevDampishDampishTarodevГеймДебMarkRiverbankTaoZak Kaioken 2TarodevZak Kaioken 2TarodevTomatechSqueaky BunnyChris JohnsonTarodevCiscoOverInfraredTarodevMyroslav DovhaliukJose ManuelSlothinkDevBalasubramani Mudaliar