Splines are Awesome!!!

preview_player
Показать описание
Let's make some smooth shapes using Splines Bezier Curves!
👍 Learn to make awesome games step-by-step from start to finish.

Animation Curves are Awesome!

How to make Awesome Effects with Meshes in Unity!

🌍 Get Code Monkey on Steam!
👍 Interactive Tutorials, Complete Games and More!

If you have any questions post them in the comments and I'll do my best to answer them.

See you next time!

#unitytutorial #unity3d #unity2d

--------------------------------------------------------------------

Hello and welcome, I am your Code Monkey and here you will learn everything about Game Development in Unity 2D using C#.

I've been developing games for several years with 7 published games on Steam and now I'm sharing my knowledge to help you on your own game development journey.

--------------------------------------------------------------------

Рекомендации по теме
Комментарии
Автор

🌐 Have you found the videos Helpful and Valuable?

CodeMonkeyUnity
Автор

💬 Do you need a nice smooth shape for a road/orbit/patrol/anim/path?
Splines to the rescue!

CodeMonkeyUnity
Автор

Your ability to distil complex topic in a way that make them feel simple is quite impressive. This channel is quickly becoming one of my favorites.

QvsTheWorld
Автор

Man, it absolutely awesome! It’s the most easiest quadratic interpolation explanation I’ve ever heard, thank you!

akinat
Автор

Probably one of the best videos I've seen on Bezier Curves, really clear! Thanks a lot! :)

iancherabier
Автор

The internet shows me lots and lots of genius in the world, and you definitely one of those geniuses!

yawnyawning
Автор

Reticulating splines. This brings back Sims 2 memories. 😄

BrednSchlV
Автор

Beautifully done tutorial! Easily explains how interpolation works and how you can expand on it!

bladescreed
Автор

Was planning to program a race game in the future. This will surely help, thanks!

kotzikuche
Автор

Sped up key stroke sounds are very satisfying

Sir_Robin_of_Camelot
Автор

Mind blown, seriously... You're definitely Brackeys 2.0

gargaroots
Автор

Thanks for a pleasant math tutorial CM.

Seeing AB_BC brought back nightmares of trigonometry.
But you know, it was good. I liked it. Always missed maths, and I'm a programmer too hahah.

LukeAps
Автор

Math is absolutely important!! Thanks for the good video.

Maxolib
Автор

10:20
Driver: "I'm a middle of the road kind of guy"

lozD
Автор

You're are the brilliant Unity master.

ThirteeNov
Автор

Best spline/bezier curve tutorial I have ever seen.

Nemega
Автор

I legitimately have never found mathematical graphical interpretation or interpolation nearly as impressive or exciting as I have than in this video. If this is how I was taught Algebra and Calculus in school I would literally have pursued a career in mathematics or programming 12 years ago instead of enlisting.

SaSeshen
Автор

you can make evenly spaced distance on curves

//this is placed on update()
if (MakeCurve == true{
MakeCurve = false;
for (float t = 0; t <= 1; t += 0.0001f)
// the lesser the value the more accurate of fixeddistance between points on curves
{
GizmosPosition = Mathf.Pow(1 - t, 3) * ControlPoints[0].position +
3 * Mathf.Pow(1 - t, 2) * t * ControlPoints[1].position +
3 * (1 - t) * Mathf.Pow(t, 2) * ControlPoints[2].position +
Mathf.Pow(t, 3) * ControlPoints[3].position;
if (isStart == true){
//add vector oosition on list //i did it on list so that the Enemy or player that will use the curve will have the same move speed
isStart = false;
PrevPosition = EnemyPos;
}
FixedDistance =(PrevPosition - EnemyPos);
if (FixedDistance > 1 ){
// add vector position on list
PrevPosition = EnemyPos;
}
Progression += 0.0001f;
}
if (Progression >= 1){
Progression = 0;
MakeCurve == true; // or just go to the next route of bezier curve
}

i did thiis last week and it took me 3 days to it so.... im just sharingg

rflx
Автор

My cat watched this with me. She likes the moving dots

MichaelTorruella-by
Автор

Thank you, great video - it really helps to visualise the maths behind the spline. One thing - should your QuadraticLerp and CubicLerp functions be using the data member 'interpolateAmount' directly? I think it makes more sense for them to use the parameter 't' instead. The end result in this example is not affected though, but it will cause problems if these functions are used from other places.

meowsqueak