Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

Feature

BONK -- Ouch!

Spherical Collision Detection and Response in 3D

Issue: 2.4 (March/April 2004)
Author: Lars Jensen
Author Bio: Lars Jensen started programming before many of you started breathing...and he'll still be at it after you're all dust! Bwahahahaaa-a-a-a...
Article Description: No description available.
Article Length (in bytes): 26,765
Starting Page Number: 23
RBD Number: 2412
Resource File(s):

Download Icon 2412.sit Updated: Monday, March 15, 2004 at 1:03 AM

Related Web Link(s):

http://www.gamedev.net/reference/list.asp?categoryid=45#99
http://www.gamedev.net/reference/articles/article1234.asp
http://www.wheatchex.com/projects/collisions
http://www.quesa.org/
http://mathworld.wolfram.com/QuadraticEquation.html
http://mathworld.wolfram.com/VietasFormulas.html

Known Limitations: None

Excerpt of article text...

Collision detection (figuring out whether objects come in contact with one another) and its sibling, collision response (figuring out what to do about it) are rich, complex topics in computer simulations of the physical world. There are many such simulations: computer-aided design tools, movie special effects, even screen savers... and, of course, games.

In Issue 2.2 (Oct/Nov 2003) of REALbasic Developer, Thomas Reed's article Collision Detection and Response showed how to simulate a round ball bouncing off a flat surface. In this article, we'll cover a related topic: how to simulate collisions among spheres moving in a 3D environment, and how to make them react in a fairly realistic way. Even if your objects aren't actually spherical, the collision detection technique code can serve as a quick initial test, after which you can investigate potential collisions in more detail.

We'll look at a few fast, general routines to handle this situation, along with their derivations, and a general framework in which to make them run. You can skip the math and physics if you like, but you'll need to know vector arithmetic to use the code.

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com