Class CollisionStrategyResult


  • public class CollisionStrategyResult
    extends java.lang.Object
    result of a single collision pair

    A collision result is one or all colliding triangles between two objects which may have
    several geometries attached.
    The collision result does not have access to the actual triangle meshes of the geometries
    so to extract the actual contact location the user has to supply the triangles meshes of
    the geometries himself.
    • Constructor Detail

      • CollisionStrategyResult

        public CollisionStrategyResult​(long cPtr,
                                       boolean cMemoryOwn)
      • CollisionStrategyResult

        public CollisionStrategyResult()
    • Method Detail

      • delete

        public void delete()
      • set_aTb

        public void set_aTb​(Transform3Dd value)
        transformation from a to b
      • get_aTb

        public Transform3Dd get_aTb()
        transformation from a to b
      • set_geomPrimIds

        public void set_geomPrimIds​(IntPairVector value)
        indices of triangles/primitives in geometry a and b that are colliding
        all colliding triangle indices are in this array also those that are from different geometries
      • get_geomPrimIds

        public IntPairVector get_geomPrimIds()
        indices of triangles/primitives in geometry a and b that are colliding
        all colliding triangle indices are in this array also those that are from different geometries
      • set_nrBVTests

        public void set_nrBVTests​(int value)
      • get_nrBVTests

        public int get_nrBVTests()
      • set_nrPrimTests

        public void set_nrPrimTests​(int value)
      • get_nrPrimTests

        public int get_nrPrimTests()
      • getNrPrimTests

        public int getNrPrimTests()
      • getNrBVTests

        public int getNrBVTests()
      • clear

        public void clear()
        clear all result values