Is it more performant to find the intersection between (x1,y1),(x2,y2) and the four sides of the rectangle instead of splitting it to 100 points?
@hobby_coding5 ай бұрын
yes, it could be . but you are assuming that the obstacle is a rectangle. it might not be .
@RithJosef11 ай бұрын
good content , move it on .
@hobby_coding5 ай бұрын
Thanks :)
@viranjanbhattacharyya97373 жыл бұрын
Eagerly waiting for the 3rd part!
@hobby_coding3 жыл бұрын
the third and fourth parts are online now chack them out
@sarawatruamngern51443 жыл бұрын
Thank you for excellent content for beginners
@hobby_coding3 жыл бұрын
thanks for watching.
@K_EN_VisheshSaini3 жыл бұрын
Im very confused in the crossObstacle method, how do you get the formula for interpolation?
@juxyper2 жыл бұрын
he weights the terms by u which varies linearly between 0 and 1. there are 100 points in this interpolation. You start by adding the full value of one and 0 of the other, then for the last term ends up with 0 of the first value and full value of the second value. this is however a very basic approach that is prone to errors, you may not "see" the obstacle at the interpolated points. using vector algebra is a foolproof approach to solving this, but he is using pygame so I don't exactly know how that would apply to it. you may need to extract the edges from that rectangle representation to work on them externally.
@damiaK00173 жыл бұрын
when your codes will be available
@ouamanezahra14893 жыл бұрын
thank you sir for this video. I did all that you mention in the video but in the end, I got the node inside the square
@hobby_coding3 жыл бұрын
i uploaded the files i the 4th vid check it out
@ouamanezahra14893 жыл бұрын
@@hobby_coding Okey I'll
@CUSenthilKumar3 жыл бұрын
@@hobby_coding I checked with your code, it seems perfect, but still, I am getting a node and edge inside the obstacle while running for this part alone. What may be the reason?
@CUSenthilKumar3 жыл бұрын
@@hobby_coding Sorry, Now I got the perfect one. The mistake I did was, I am using 1/100 instead of i/100 in crossObstacle and in freeNode, I am giving the True condition inside the while loop. Thanks for this video.