Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
ball
- Page 1
Re: Are we being played by AI? Let's Discuss!
Community Center
Meta DaniWeb
3 Weeks Ago
by Dani
… to any medication. I don’t mean to drop the
ball
on this thread.
Re: ball collisions- great problem (conceptual)
Programming
Software Development
16 Years Ago
by VernonDozier
…colour; this.mju = mju; } // constructor for
ball
from another
ball
public
Ball
(
Ball
ballobject){ this.position = ballobject.GetPos(); this.velocity =… return energyA + energyB; } public static Vector2d GetTotalMomentum (
Ball
A,
Ball
B) { return new Vector2d (GetTotalXMomentum (A, B),…
Re: ball collisions- great problem (conceptual)
Programming
Software Development
16 Years Ago
by VernonDozier
…array of balls for the specified number of balls
Ball
balls[] = new
Ball
[ballnumber]; double VelX, VelY; Vector2d ballposition; ballXpos… = 10; ballcolour = 2; ballmju = 0; balls[0] = new
Ball
(ballposition, ballvelocity, ballmass, ballradius, ballcolour, ballmju); ballXpos = 200; ballYpos =…
Re: ball collisions- great problem (conceptual)
Programming
Software Development
16 Years Ago
by VernonDozier
…momentum wasn't conserved. Eg. balls of same mass, one
ball
is initially stationary, other going at 80pix/s: After collision…it doesn't conserve momentum. For easy math, make each
ball
have a mass of one kilogram. For collision you have… but perhaps you can provide us with a stripped down
Ball
class that just has the mass, location, and velocity …
Ball game
Programming
Software Development
10 Years Ago
by NightOwl19
…60); Racket rkt = new Racket(mainFrame);
Ball
bl = new
Ball
(mainFrame); addKeyListener(new KeyListener(){ @Override public … velocity for y co-ordinate JFrame jf; Racket rt;
Ball
(JFrame j) { jf=j; } public void move()…
ball collisions- great problem (conceptual)
Programming
Software Development
16 Years Ago
by trelek2
…simulation and have an awful problem with my
ball
collisions (elastic collisions). The theory (in …sets their' new velocities public static void Collide(
Ball
A,
Ball
B){ Vector2d joining = LineBetweenCentres(A, B);…don't collide again straight away do{ line =
Ball
.LineBetweenCentres(A, B); A.UpdatePosition(); B.UpdatePosition();…
Re: Ball game
Programming
Software Development
10 Years Ago
by NightOwl19
…have find a completely different solution for moving
ball
game.But the problem is when i try… with the previous code but this time the
ball
is moving and colliding up and against the…static JFrame frame; mainGame() { frame = new JFrame("
Ball
Bounce"); frame.setLocationByPlatform(true); frame.setLocation(450,50);…
Re: ball collisions- great problem (conceptual)
Programming
Software Development
16 Years Ago
by trelek2
… your mail. But actually what you said (after collision one
ball
stops, while other starts moving with the velocity of the… head on collision. If the the moving
ball
doesn't hit the stationary
ball
exactly in the center both balls should start…
Re: ball collisions- great problem (conceptual)
Programming
Software Development
16 Years Ago
by VernonDozier
… your mail. But actually what you said (after collision one
ball
stops, while other starts moving with the velocity of the… head on collision. If the the moving
ball
doesn't hit the stationary
ball
exactly in the center both balls should start…
Re: Ball game
Programming
Software Development
10 Years Ago
by NightOwl19
… made corrections as u suggested but still nothing works..the
ball
is not colliding off the wall at all.. i am… the concept of collision and relation of velocity while the
ball
is made to bounce back. and also i have passed…
Re: Ball game
Programming
Software Development
10 Years Ago
by NightOwl19
hey thanks. Though u r right about the website' code for the game but i had a lot of troubles finding a decent
ball
game to start with before coming across that..so, can u plz suggest me some good links about the same??
Re: Ball game
Programming
Software Development
10 Years Ago
by JamesCherrill
… also discusses collisions, which will probably be relevant to a
ball
game. Have a look at that then come back here…
ball tracking in model of soccer pitch using python and opencv,,,,,Help!!!!
Programming
Software Development
8 Years Ago
by The Last
… using python and opencv. My project is to track the
ball
in model soccer pitch using raspberry pi camera. I want… the camera to track the
ball
and give an alert when the
ball
crosses the boundaries of the soccer pitch… gives an alert or just a feedback, or when the
ball
crosses the the lines, it gives an alert. any Ideas…
Re: ball collisions- great problem (conceptual)
Programming
Software Development
16 Years Ago
by trelek2
… at centers so it works. Try for example putting one
ball
stationary. And the other one going at a velocity with…
Ball Bearing and Sleeve bearing Whats the difference?
Hardware and Software
Hardware
20 Years Ago
by Danniboy
Hi all, just a quickie, What is a Sleeve bearing Fan and a
Ball
Bearing fan? i have 1 each of these, so whats better? whats the difference? i seem to think
ball
bearing is better cos ive seen it more but im not at all sure anybody fill me in? Danniboy.
ball bounce using graphics.h
Programming
Software Development
12 Years Ago
by adityasingh95
i need to create a
ball
bounce program where the
ball
would be of a user defined radius, it would bounce …
Ball Line Game
Programming
Software Development
17 Years Ago
by cga2
Hey guys, I wanted to know how can I code the game
ball
lines in Yahoo. It is a game very easy to understand and similar to tic tac toe but I just cant figure out anything as to how to start. Please help!! u can mail me on [email]chandanagrawal17@hotmail.com[/email] thanks
Re: Ball Line Game
Programming
Software Development
17 Years Ago
by cga2
the game can be found here.. [url]http://games.yahoo.com/free-games/
ball
-lines[/url]
Re: Ball Line Game
Programming
Software Development
17 Years Ago
by Black Box
… it's going to be something like [B]boolean throwAway =
ball
.getColor().equals(otherBall.getColor());[/B], but that's not going…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Year Ago
by toneewa
… drawing the next
ball
. A
ball
inside a
ball
's radius will … this.radius); } public boolean collides(
Ball
b){ return this.getBounds().intersects(b.…; upToIndex; i++) {
Ball
ball
= balls[i]; int dx =
ball
.getX() - x; int dy =
ball
.getY() - y; int…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Year Ago
by toneewa
…setColor(Color.red); g.fillOval(
ball
.getX(),
ball
.getY(), 2 *
ball
.getRadius(), 2 *
ball
.getRadius()); } // Display …< upToIndex; i++) {
Ball
ball
= balls[i]; int dx =
ball
.getX() - x; int dy =
ball
.getY() - y; int distanceSquared …
Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Year Ago
by jprog1000
…public int getY(){ return this.y; } public void changeDirection(
Ball
b){ if (this.x <= b.x &&….y, this.radius, this.radius); } public boolean collides(
Ball
b){ return this.getBounds().intersects(b.getBounds()); } } import…
Re: Physics ball JAVASCRIPT
Programming
Web Development
18 Years Ago
by MattEvans
… one method: - First, you need to impart the
ball
with some information about where it's going. Webpages are…. Basically, if
ball
.myX < 0;
ball
is at left edge; if (
ball
.myX +
ball
.myWidth) > screen.myWidth;
ball
is at right … magnitude for added realism. Your timer will detect the
ball
should be moving, and then gravity will kick in …
Shooting ball hELP?
Programming
Software Development
14 Years Ago
by jib
… title ("shooting
ball
") bgcolor('grey')
ball
=Turtle()
ball
.penup()
ball
.shape("circle")
ball
.shapesize(3,3,3)
ball
.color("blue"…;)
ball
.speed() bounce_point = 20 shooter…
Make a ball move by dragging the mouse
Programming
Software Development
13 Years Ago
by Stevo812
…java and I'm having trouble making the cue
ball
move by using the mousePressed(), mouseDragged and mouseReleased()…target object. Once the mouse is released the
ball
should travel along the direction of the line …copied. 19. private Graphics doubleBuffer; 20. 21.
Ball
b[] = new
Ball
[16]; 22. 23. /creates a new instance of…
Re: Collison Between Ball And Box
Programming
Software Development
12 Years Ago
by game06
…by myself. i know how to test for collision between
ball
and rect. this works fine for now. if(this.getBounds_ball…getBounds_ball().intersects(this.getBounds_rect())) but this doesnt tell where the
ball
is touching the rect from. so i cant really move… the
ball
bc i dont know if i want to move the…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Year Ago
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());
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Year Ago
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
Collison Between Ball And Box
Programming
Software Development
12 Years Ago
by game06
…of the inner if statments. x =
ball
x y =
ball
y radius =
ball
width and height rx = rect x ry…width main game loop: x += dx; //keep the
ball
moving so i can test the collision y += dy;… //collsion between
ball
and box if(x+radius > rx &…
Convert mouse position to Texture position on ball
Programming
Game Development
18 Years Ago
by 3DStarter
… 3D Sphere object which in this case is a perfect
ball
(not eggs shape) using Spherical Texture mapping. [*]The idea is…] [LIST=1] [*]When a user clicks the surface of the
ball
our application is able to get the mouse position (x… position to the Texture position in order to update the
ball
surface? If you are able to help or if you…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC