Комментарии:
The funny thing about this guy is he sounds like me after doing something for 4 hours talking to myself, like "So now I have to do this, and it should... do the thing"
Ответитьi always come back here when i ned line->line intersections
ОтветитьThanks so much, I'm half watching for the subject and half watching because you are just so fun!
ОтветитьOne thing drives me mad throughout those series. A line is drawn between two points; the center of a circle is a point, and distance is measured between two points...
And p5 has a structure to represent a point, a Vector
But no. No no no no no! We are going to use coordinates for an argument of those functions
this dot son.
ОтветитьWhere is self driving carr
ОтветитьThis video is so useful, I'll for sure have a look at it!
Ответитьcan you do a minecraft plugin tutorial ? thats a Coding Challenge for you
Ответитьt basically is where on the line is the hit. 0 means it is on point a, 1 means it is on point b. Higher than 1 means beyond point b and lower than 0 before point a. That also means t > 0 should be t >= 0 and t < 1 should be t <= 1.
ОтветитьMesmo sem entender inglês esse vídeo é como se tudo comunicado conquista como apreendido.
ОтветитьWhy are you laughing?
ОтветитьCool thumbnail
ОтветитьThis guy can make whole game engine with processing
ОтветитьThis is actually raytracing.
ОтветитьRule 34* if it exists, there is a "the coding train" video of it.
ОтветитьOkay but how do you run your code after you have written it? like...visually. How do you open that window in your browser?
Ответитьme entanca :3
ОтветитьI am having a hard time implementing this with rectangle instead of lines
Ответитьwhere 3d?
Ответить2022 the formula for u changed u = ((x1 - x3) * (y1 - y2) - (y1 - y3) * (x1 - x2)) /denominator, I was scratching my head when i saw that, at some point had an error and tried to fix it from the wiki. I made a mess until realize that they are two different formulas, dont know why they change it. they seem to give the same result.
ОтветитьI haven't been programming in a while and jumping back in to your tutorials I get to see how much comedy you've added! it's great to see you so expressive
ОтветитьDreams are lies only coffee is true
ОтветитьBecause I hate them and they retaliated
Ответитьi neee more brain power to comprehend this
ОтветитьI really like your step-by-step explanations and approach to solving problems. What looked too complicated at first becomes gradually more comprehensible, and finally you think to yourself, "what, it's that simple?".
Ответитьdamn like among us's shadows
Ответитьwhy is this.dir enough for the ray to extend to infinity? Is it something special in java? Because if I draw a vector in python, it only extends as far as its endpoint. Then I can't do the operations
Ответить“Now I didn’t forget the this.!” also starts typing dir without this.
ОтветитьThat ending made me SO happy I can't even describe it
ОтветитьRay-line intersection
ОтветитьIf the ray is going off in both directions to infinity, doesn't that technically just make it a line? Rays have an origin.
ОтветитьSus
ОтветитьI spent way too long trying to trouble shoot this problem: the wiki actually changed the formula for calculating u. it is no longer negative, and there are different value used in the formula. Make sure to either follow EXACTLY what the coding train put for u, or follow EXACTLY what the wiki put for u!
ОтветитьI love your sticker on your laptop says never forget the this dot and you forgot it in the first part of the code! Great Video as usual!
ОтветитьGreat video!
ОтветитьThis video is simply amazing! I always used to think of Raycasting as this very complicated topic which requires a good understanding of Math but at not point did it feel like I didn't understand this video. I am blown away!
Ответитьgreat video really thank for doing it.
ОтветитьSuper Awesome!
ОтветитьGreat, thanks fo rthis. i re wrote it all to work in Game Maker Studio and have learned soo much.
ОтветитьIs this raycasting or ray tracing?
Ответитьi tried same code on processing 4 and i catch an error syntax on parameter method declaration near 'x1, '
ОтветитьI made this same thing in scratch as a 8 year old 5 years ago
Ответить2 cases that the line segment intersection check here forgets to consider (which become more apparent in the next video):
-If the ray is parallel with the wall, but also directly in line with it, the intersection check here will return empty when it should return the closer of the 2 endpoints of the wall (and the distance to it)
-If the particle/vehicle is sitting directly on a wall (or if a wall has the same start and endpoint / 0 length), then the intersection check should return the ray's origin point (0 distance) no matter what
Great video though; this stuff is super useful
Every time this thumbnail shows up in my recommended it does this thing where it moves as I scroll
ОтветитьLMAO that "this dot" tune is great
ОтветитьMy first goal is to learn what you teach, but I also enjoy seeing your reactions when you start coding. I see myself in you, so I love your channel because I feel the same joy you get when coding graphics like this.
ОтветитьVery interesting subject matter. Love the quirky presentation style. Sub added. I'm interested in using this type of algorithm, but converted to an electronic system using ultrasonic emitters and sensors. This video was good inspiration though, so thanks for that.
ОтветитьVerry nice video!! THX
Ответить