Class CollisionData

java.lang.Object
com.ardor3d.intersection.CollisionData

public class CollisionData extends Object
CollisionData contains information about a collision between two Mesh objects. The mesh that was hit by the relevant Mesh (the one making the collision check) is referenced as well as an ArrayList for the triangles that collided.
  • Constructor Details

    • CollisionData

      public CollisionData(Mesh sourceMesh, Mesh targetMesh)
      instantiates a new CollisionData object.
      Parameters:
      sourceMesh - the relevant Geometry
      targetMesh - the mesh the source Mesh collided with.
    • CollisionData

      public CollisionData(Mesh sourceMesh, Mesh targetMesh, List<PrimitiveKey> sourcePrimitives, List<PrimitiveKey> targetPrimitives)
      instantiates a new CollisionData object.
      Parameters:
      sourceMesh - the relevant Mesh
      targetMesh - the mesh the source Mesh collided with.
      sourcePrimitives - the primitives of the source Mesh that made contact.
      targetPrimitives - the primitives of the second mesh that made contact.
  • Method Details

    • getTargetMesh

      public Mesh getTargetMesh()
    • getSourceMesh

      public Mesh getSourceMesh()
    • getSourcePrimitives

      public List<PrimitiveKey> getSourcePrimitives()
    • getTargetPrimitives

      public List<PrimitiveKey> getTargetPrimitives()