|
-
Aug 11th, 2008, 11:21 AM
#1
Thread Starter
Lively Member
Ball Maze collision detection
I would like to write a ball-maze game but I am wondering about collision detection of the ball with horizontal and vertical barriers. Would simply checking at the top, bottom, left and right sides of the ball be adequate. I plan to use the color 'Point' method to detect barriers. When the ball rounds the corner of a barrier and I invert the X or Y values (as necessary), this does not seem like it would accurately detect hitting a barrier corner. Perhaps checking 8 or more points around the ball will work in which case both the X and Y values will be adjusted at, say, 45 degree angles. What would be a good starting philosophy to implement ball/barrier detection?
Cadman
PS: using VB6
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|