Advertisement

Circle Collision Response

Started by January 02, 2003 08:06 AM
15 comments, last by unrealt84 22 years, 1 month ago
I''m checking for all paddles..that''s y active paddle comes into play.

The detection part is fine.. If u wanna see what''s wrong with it I can send it 2 u (the EXE / the source). That would be very helpful for me also cause then maybe u can figure out the problem.. I have 2 submit this project in the next 2 days..
So all help would be appreciated..
Thanks,
Rohit.
Hmm..
No point sending me the app as I''m using a Macintosh. If you''ve any more code you think is relevant post it.

Anyway, I can''t see anything wrong with my replies but they''re not solving your problem. Perhaps someone else can step in with suggestions, especially if they spot something I''m overlooking ?
John BlackburneProgrammer, The Pitbull Syndicate
Advertisement
Check out this article.
You are not the one beautiful and unique snowflake who, unlike the rest of us, doesn't have to go through the tedious and difficult process of science in order to establish the truth. You're as foolable as anyone else. And since you have taken no precautions to avoid fooling yourself, the self-evident fact that countless millions of humans before you have also fooled themselves leads me to the parsimonious belief that you have too.--Daniel Rutter
Function Crash(x1, y1, x2, y2, v1x, v1y, v2x, v2y, m1, m2)
dx = x2 - x1
dy = y2 - y1

rx = dx / (Sqr(dx * dx + dy * dy))
ry = dy / (Sqr(dx * dx + dy * dy))

k = (rx * (v2x - v1x) + ry * (v2y - v1y)) / (m1 + m2)

v1x = rx * m2 * k
v1y = ry * m2 * k
v2x = -(rx * m1 * k)
v2y = -(ry * m1 * k)
End Function
hello to every body on the forum.
i m developing a project of 3D game of SQUASH.
i have done the collision detection with the walls.
now i m facing difficulty in handling the resoponse of ball according to the gravity.
i will be very thankful to anybody who will help me.
hi every body!
i m developing a project of 3d SQUASH game.
in this game i have to show the motion of SQUASH ball as the projectile motion in the 3d.
if any body want to tell me this then mail me at
sbilal_haider@yahoo.com
i m waiting for a genius'' reply.
r u genius?
Advertisement
Hi bilal haider,

Please create a new thread to ask your 3D squash question. It is very confusing to begin a new topic in the middle of an existing discussion.

When you create the new thread, tell us more about how you are simulating the motion of the ball, and the collision with the walls. People will be more interested in helping you solve the gravity problem if you first describe some of the techniques you''ve already implemented.

I think it is a great idea to do a squash game. I''ve enjoyed playing real squash in the past, and I think it would make a fun game!

Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.
Graham Rhodes Moderator, Math & Physics forum @ gamedev.net

This topic is closed to new replies.

Advertisement