View Full Version : colision detectio
I am working ona a game with characters using swords in open GL. I use various spheres to determine the outline of the objects and then test the colision of each sphere with other spheres.
Is this the correct way of determining colisions?
05-01-2003, 09:48 PM
That is a semi-efficient way to calculate collisions. Another is to use bounding boxes.
To get the true collisions is very expensive, and would likely be detrimental to your real-time rendering (assuming you have a decent number of possible collisions going on).
I believe that most people have a simple bounding object (sphere or box) to perform collisions. What kinds of objects are you colliding? The sword and what? A box may be a better fit for an object like a sword - it can give slightly more accurate collisions.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.