Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thinking up of a collision system.
#1
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.
Reply
#2
Well actually it is needed for a simple 3D breakout game I'm going to make.
Reply
#3
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. Smile
i]"But...it was so beautifully done"[/i]
Reply
#4
I get it now.

Sphere collision might be very nice to add in the game.
Reply
#5
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]
Reply
#6
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)