Posts: 48
Threads: 9
Joined: Mar 2005
After getting around with the GL and scene handeling which was last night, I was wondering if a way to to do a collision system. Well mostly by quads as if I were to do a cube only collision detection what would be cool too. I was thinking about coming up with my own collision I am currently trying to figure out how to do it. Simply just with the flat plane only.
Yeah a cube collision detection system would be bad for a freespace style space combat game lol.
Posts: 48
Threads: 9
Joined: Mar 2005
Well actually it is needed for a simple 3D breakout game I'm going to make.
Posts: 503
Threads: 31
Joined: Feb 2005
Use circles.
A Sphere is just a circle but with the radius in ANY direction. So in 3D you just use the distance forumla with the centers of the two spheres and see if the distance < the radii of the two spheres your comparing combined.
Did that sound right? U understood right? If anyone would explain it bettr.
i]"But...it was so beautifully done"[/i]
Posts: 48
Threads: 9
Joined: Mar 2005
I get it now.
Sphere collision might be very nice to add in the game.
Posts: 503
Threads: 31
Joined: Feb 2005
Only 1 prob with it. It uses ^2 and ^.5 which take a lot more calcs for Mr. CPU to do than the 16 Ifs it will take for the cube one.
i]"But...it was so beautifully done"[/i]
Posts: 729
Threads: 104
Joined: Jan 2003
I'm working on using raycasting to get fairly accurate collision detection in a true physics environment. It's only 2D for the prototype, but I don't really see a problem adding a plane.