vector collision on polygon in 3d space detection/testing?

Posted by LRFLEW on Game Development See other posts from Game Development or by LRFLEW
Published on 2011-07-01T03:20:30Z Indexed on 2011/07/01 8:32 UTC
Read the original article Hit count: 296

Filed under:
|
|

In the 3d fps in java I'm working on, I need a bullet to be fired and to tell if it hit someone. All visual objects in the game are defined through OpenGL, so the object it can be colliding with can be any drawable polygon (although they will most likely be triangles and rectangles anyways). The bullet is not an object, but will be treated as a vector that instantaneously moves all the way across the map (like the snipper riffle in Halo). What's the best way to detect/test collisions with the polygon and the vector. I have access to OpenCL, however I have absolutely no experience with it. I am very early in the developmental stage, so if you think there's a better way of going about this, feel free to tell me (I barley have a player model to collide with anyways, so I'm flexible with it).

Thanks

© Game Development or respective owner

Related posts about java

Related posts about first-person-shooter