Module org.dyn4j

Class ContactConstraintId


  • public final class ContactConstraintId
    extends java.lang.Object
    Represents and id for a contact constraint between two Convex Shapes on two Bodys.
    Since:
    1.0.0
    Version:
    3.4.0
    Author:
    William Bittle
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getBody1Id

        @Deprecated
        public java.util.UUID getBody1Id()
        Deprecated.
        ID schemes should be implemented by the user where needed; since 3.4.0
        Returns the id of the first body.
        Returns:
        UUID
        Since:
        3.1.2
      • getBody2Id

        @Deprecated
        public java.util.UUID getBody2Id()
        Deprecated.
        ID schemes should be implemented by the user where needed; since 3.4.0
        Returns the id of the second body.
        Returns:
        UUID
        Since:
        3.1.2
      • getFixture1Id

        @Deprecated
        public java.util.UUID getFixture1Id()
        Deprecated.
        ID schemes should be implemented by the user where needed; since 3.4.0
        Returns the id of the fixture on the first body.
        Returns:
        UUID
        Since:
        3.1.2
      • getFixture2Id

        @Deprecated
        public java.util.UUID getFixture2Id()
        Deprecated.
        ID schemes should be implemented by the user where needed; since 3.4.0
        Returns the id of the fixture on the second body.
        Returns:
        UUID
        Since:
        3.1.2
      • getBody1

        public Body getBody1()
        Returns the first body.
        Returns:
        Body
        Since:
        3.4.0
      • getBody2

        public Body getBody2()
        Returns the second body.
        Returns:
        Body
        Since:
        3.4.0
      • getFixture1

        public BodyFixture getFixture1()
        Returns the fixture on the first body.
        Returns:
        BodyFixture
        Since:
        3.4.0
      • getFixture2

        public BodyFixture getFixture2()
        Returns the fixture on the second body.
        Returns:
        BodyFixture
        Since:
        3.4.0