Exactly Germanunkol!
This is a function that "traces" each Bone of a model to enable precise hits for ego shooters.

This maybe is the final version; improvements:

- Better calculation of the TARGET - vector
- returns distance to shot-origin
- returns hit-bone-number (to detect headshots ect.)
- shot-direction does not have to be a normal vector (length doesn't matter any more)

- example how to use it in combination with trace to detect walls that are in the way.

New demo program including "precise_shot.wdl": trace.exe - Selfextracting WinRAR archive (~1.43 MB)










My project Schlacht um Kyoto - Das Samurai Browsergame! (sorry, german only)