Re: Kinematic Collision

Jon Watte <[email protected]>
Newsgroups gmane.games.devel.algorithms
Message-ID <[email protected]>
The simplest character I find that I can get away with in the general 
case is the lollipop. One ray for legs, and a capsule for the body. The 
capsule extends between the knees and the top of the head, and is 
slightly wider than shoulders (to give some space for swinging arms, 
etc). This is fairly cheap (capsule tests are cheap, and seldom actually 
collide with things), and nicely prevents you from penetrating things 
you're not supposed to.

If you're really worried about sideways penetrations, or want to cut a 
hundred more cycles from the collision test, you can replace the capsule 
with a sphere. It won't let characters get as close to things (or each 
other, if you test char/char), though.

Sincerely,

jw


David Black wrote:
> Figuring out what surface is fine to "be on" and how to handle
> surfaces you should not be in, or the penetration into either is
> a major pain.  In the simple cases its trivial, but in the face
>   

-- 

  Revenge is the most pointless and damaging of human desires.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
GDAlgorithms-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.