![]() |
|
Collision detection in 3d |
Jeremias Raziel
Member #581
August 2000
|
At first, i'd like to say that my internet was down for seven days and then i reinstalled windoze me and lost all my passwords. Good that i remembered the one of my email account. |
lwithers
Member #630
September 2000
|
Well, for a sphere, you can simply check how close the centres of the two spheres are. If this is less than the sum of their radii, then they are overlapping. |
lwithers
Member #630
September 2000
|
aargh! there is a length limit on posts... |
lwithers
Member #630
September 2000
|
Or is it a bug in the UBB? You will have to replace `OR' with the symbol for logical OR, below. |
Bob
Free Market Evangelist
September 2000
![]() |
WARNING: PSEUDO-CODE! -- |
Daniel_C_McKinnon
Member #685
October 2000
|
Damnit! I Pseudo-code is thashiat! I would much rather see an algorithm in pseudo-code, it's much easier to implement than trying to descipher normal code (unless it is commented on every line or so) But that's just my opinion, and I'm sure my random babbling didn't help. |
Toidi_G
Member #848
December 2000
|
I guess I should point out that I am developing 3D engine a bit like yours. It is in C++ so the source might be helpful to you. It can load Quake BSP files which makes collision detection amazingly easy. If you would like to get the source code for it I can email it to you. It would be a stripped down version though as I don't want to release the full source code until the engine is complete in a few weeks. |
|