title: Libgdx Melee Attack Collision Detection
body: <p>I have a 3D scene with 3D model instances; and I want to do collision detection. I'm currently following this tutorial (<a href="http://blog.xoppa.com/using-the-libgdx-3d-physics-bullet-wrapper-part1/" rel="nofollow">http://blog.xoppa.com/using-the-libgdx-3d-physics-bullet-wrapper-part1/</a>). However, what I want is a bit more complicated.</p>
  
  <p>There's a character (a knight.g3db model that's part of the sample code from Libgdx basic 3d model class), and it can attack with a sword. I also have another model instance that I want to "attack" with the sword. </p>
  
  <p>Checking if the two objects for collision isn't the problem since that can easily be detected from the Bullet library. What I would like is possibly the following, but I'm not sure how to implement:</p>
  
  <ul>
  <li>Have the sword as the collision object, or</li>
  <li>Implement checking if only the front part of the "box" of the knight is colliding with the other object, or</li>
  <li>Create a separate invisible virtual box in front of the knight character and use that as basis if there's a collision.</li>
  </ul>
  
  <p>Are there any references that you know that can do this (if the above proposed solutions are even possible)? Or if there's a better solution, please let me know.</p>
  
  <p>What I'm trying to avoid: knight attacking while the other object is <em>behind</em> and still getting hit.</p>
  
  <p>Thanks in advance.</p>