Solutions to Hit Test & More: |
By: Christopher Bartlett |
Rev. Aug. 2, 2001 |
Note:
These are some solutions to common question asked by programmers for hit tests.
They are not the only ones possible, And I can not say the definitely the best, But I do belive are very good.
I have answer these question on some news groups or gotten help in some of these areas.
This is my attempt to help others by giving them access to explanation of solutions and example code were possible.
I have tried to check my explanations, math and code on these pages.
But I might have missed something so if you catch anything that is wrong PLEASE yet me know.
|
|
Solution Descriptions: Short descritions of what explanations covers.
Explanation: How well done is explanation.
Finished: Means I belive it is complete.
Draft: Means I think it good but not polish.
Coming Soon: Means I plan on doing this real soon. Number is order most likely to be posted on web.
Planed: Means I am thinking of doing this.
Bare Minimum: Means just enough info to get jest of it.
Not tested: I have not tested code list to see if it works.
Code: Does it have C code listing or not.
JavaScript Examples: Does it have a simple JavaScript example to test.
Date Revised: When was the last time updated.
|
Solution Descriptions: |
Explanation: |
Code: |
Java Script
example: |
Date Revised |
|
|
|
|
|
Bullet hitting a Box |
Coming Soon: 2 |
No |
No |
|
|
Bullet hitting a rotated Box |
Coming Soon: 3 |
No |
No |
|
|
Bullet hitting a moving rotated Box |
Coming Soon: 4 |
No |
No |
|
|
Moving Sphere hitting a rotated Box |
Coming Soon: 5 |
No |
No |
|
|
Moving Sphere hitting a Moving rotated Box |
Coming Soon: 6 |
No |
No |
|
|
2D pixel level hit test between sprite using hit mask |
Coming Soon: 1 |
No |
No |
|
|
|
|
|
Other places to look for Examples/Explainations and Code |
2/16/01 |
|
|
|
|
|
All Material within this article is Copyrighted ©
2000 and © 2001 by Christopher Bartlett, All rights reserved.
Use is Granted for Learning. Last Revised on August 2nd, 2001 (8-2-01).
Web: The House of Bartlett
Contact: houseofbartlett@angelfire.com
Visits: |