Question Answering with YouTube Videos Using RAG in LangChain Programming Computer Science by usmanmalik57 …=C5BkxbbLbIY", "https://www.youtube.com/watch?v=7qbJvucsU-Y", "https://www.youtube.com/watch?v=DNNMS7l6A-g… Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by jprog1000 Got it. Thank you so much! Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by vortex_1 In my opinion, implementing a feature in a bouncing balls simulation where a new ball is created when two balls collide can add an interesting and dynamic element to the simulation. This feature can introduce a sense of complexity and unpredictability, making the simulation more engaging and challenging for users. It could also provide an … Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by jprog1000 Great reply, vortex! Agree with all your points. Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by Digital_39 Hi, Its helpful for me. I got my answer. Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by toneewa … = false; return true; } return false; } public void setY(int y ){ this.y = y; } public int getRadius(){ return this.radius; } public Rectangle getBounds(){ return… Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by jprog1000 …x -= xDx; if ( yUp ) y += yDy; else y -= yDy; } public int getX(){ return… } } public void setY(int y ){ this.y = y; } public int getRadius(){ return this… Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by toneewa … ); } if (xUp) x += xDx; else x -= xDx; if ( yUp ) y += yDy; else y -= yDy; } public int getX(){ return this.x; } public int… Re: Trying to animate sprite using DirectX9 Programming Software Development by Pavel_11 … { cavemanRight.movex = +5; cavemanRight.x += cavemanRight.movex; cavemanRight.y += cavemanRight.movey; } if(KEY_DOWN(VK_LEFT)) { cavemanRight.movex = -…5; cavemanRight.x += cavemanRight.movex; cavemanRight.y += cavemanLeft.movey; } if(cavemanRight.movex > 0) {… Re: How Build video-player in html And css ? Programming by Kirubel_2 …; margin: 0; padding: 0; height: 101vh; overflow-y: hidden; } .container button{ background: transparent; color:white…-size: cover; background-repeat: no no-repeat; overflow-y: scroll; overflow-x: auto; } .body2{ height:… Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by jprog1000 Thank you so much for your reply and additions! It is certainly working as I wanted. I will read through the code you have added and ask you any questions I might have. I hope you don't mind. Regards Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by Dani I’ll mark this question solved :) Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by Dani … oh, sorry, missed the bit about you still needing clarifications. Feel feee to ask :) I’ll now unmark this topic as solved. /facepalm Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by jprog1000 Hello, Thank you again so much! All your additions are clear, but it seems like whenever two balls collide, more than one ball is added to the arraylist and painted. Any way to have just one ball added to the panel for every collision? Have some kind of a toggle flag in paintcomponent? Regards Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by toneewa Yes, this is true. Overlapping ball spawns can do that causing a chain reaction. Something like that could be done. How you handle the spawning of the new ball is what I played with a bit before. You will see better collision detection changing to: g.fillOval(ball.getX(), ball.getY(), 1 * ball.getRadius(), 1 * ball.getRadius()); Extract Tabular Data from PDF Images using Hugging Face Table Transformer Programming Computer Science by usmanmalik57 … !pip install pytesseract !pip install easyocr !sudo apt-get install -y poppler-utils !pip install pdf2image !wget "https://fonts.google… entry['label'] == 'table column'] # Sort rows and columns by their Y and X coordinates, respectively rows.sort(key=lambda x: x… Re: How can I create a meme generator using js canvas? Programming Web Development by jessicaboland …const userInput = 'Your Text Here'; ctx.fillText(userInput, x, y); // Initial text rendering // Mouse interaction canvas.addEventListener('mousemove', (e…on mouse coordinates x = e.clientX - canvas.getBoundingClientRect().left; y = e.clientY - canvas.getBoundingClientRect().top; // Clear and redraw… Re: import image from database image folder to pdf using fpdf Programming Web Development by thir …(pathinfo($_FILES['gambarvk_image']['name'], PATHINFO_EXTENSION)); //function Image($file, $x=null, $y=null, $w=0, $h=0, $type='', $link='') $pdf->Image… extension like PNG or JPG; //function Image($file, $x=null, $y=null, $w=0, $h=0, $type='', $link='') $pdf->Image… Re: VB6 - RayCasting: why my Vertical intersection is so big? Programming Software Development by cambalinho … If Me.Caption = "X: " + Str(Player.MapX) + " Y: " + Str(Player.MapY) + " FPS: " + Str(FramePerSecond) + "… Re: VB6 - RayCasting: why my Vertical intersection is so big? Programming Software Development by cambalinho … If Me.Caption = "X: " + Str(Player.MapX) + " Y: " + Str(Player.MapY) + " FPS: " + Str(FramePerSecond) + "… Re: Track Faces from Videos with Margins Using Deep Learning in Python Programming Computer Science by EdwardMatthew It's fantastic, I have read this article and it is super amazing. thankyou for the knowledge. Re: Help My Computer Takes Too Long Too Start Hardware and Software Information Security by as786 y Re: Pulling a portion of text from a MySQL table Programming Databases by Xsimulator.net y Re: {help me......} Programming Software Development by Jessurider y no-one to help me................. Re: asp.net, accessing data in app_folder ? Programming Web Development by HunainHafeez (Y) y my router always IP start from 192.168.2.1 Hardware and Software Networking by denniskhor y my router always IP start from 192.168.2.1, i wan start with 192.168.1.1... how to do it?? i reset many times ady... still same... Re: Y DLL files? Programming Software Development by Ancient Dragon … use DLL files? Answer: Y not? >>where we should use DLL files and … Can someone explain me this regex snippet Programming Software Development by terabyte y/A-Za-z/N-ZA-Mn-za-m/; it is a rot13 script but I don't undestand how it works, what is the y// operator for hi Community Center Say Hello! by nicoarcila y si por mi fuera todos estarian muertos tech Programming Software Development by tiyagu_vpm y c++ is not fully oops