PDA

View Full Version : hitTesting



valmian
10-02-2002, 12:45 PM
I am trying to figure out how to hitTest an OBJ object.

31337
10-02-2002, 12:47 PM
Uhm wow maybe once you've taken precalc you can figure it out. Because your only in algebra its difficult to explain the complexities of hit testing polygon surfaces. And yes, I am sitting two seats down from you.

31337
10-02-2002, 12:48 PM
the only advice I can give you is to use hittest.h (not really in existance) or to gank some code from source forge because frankly you arn't going to be able to do it... Use sphere hit testing by just doing a 3d distance request... very simple.

valmian
10-02-2002, 12:53 PM
Oh, shut up, I'm sure I'll be able to do it Jeff.

valmian
10-03-2002, 10:48 AM
Can anyone help me or not!!!!???

Leyder Dylan
10-06-2002, 07:57 AM
Loop trough all OBJ polys and test if you have a collision between you and the object.

For collision test, I use the program "Collision wetween a line and a poly" in my engine and it works well :
www.gametutorials.com (http://www.gametutorials.com)


I've never tryed to test collision wit a OBJ file but, I think that's possible and easily.