dudeabot
10-02-2008 16:22:52
i have done a search on forums, but didnt find anything very detailed for this particular problem
the game style is yet another FPS and i want to do hitboxes for head, arms, etc
here is the solution i have thought so far, but not implemented yet
1) the enemies are controlled by spherical collision, and it is used also as a filter for detecting bullet collision
2) if the bullet hits the spherical collision, then we would go and check if any hitbox was hit, if no hitbox then we stop here
3) check which hitbox was hit
4) if it is a fatal hit(or the enemy HP is low), remove the spherical collision and spawn a ragdoll
a hitbox would consist, of AABB with hitpoints, attached to the respective bone(s)
each model would need to have its own hitbox information (maybe a editor is needed to be built)
but maybe thats a little overkill solution.. is there more trivial ones?
the game style is yet another FPS and i want to do hitboxes for head, arms, etc
here is the solution i have thought so far, but not implemented yet
1) the enemies are controlled by spherical collision, and it is used also as a filter for detecting bullet collision
2) if the bullet hits the spherical collision, then we would go and check if any hitbox was hit, if no hitbox then we stop here
3) check which hitbox was hit
4) if it is a fatal hit(or the enemy HP is low), remove the spherical collision and spawn a ragdoll
a hitbox would consist, of AABB with hitpoints, attached to the respective bone(s)
each model would need to have its own hitbox information (maybe a editor is needed to be built)
but maybe thats a little overkill solution.. is there more trivial ones?