Module org.dyn4j

Class Constraint

  • All Implemented Interfaces:
    Shiftable

    @Deprecated
    public abstract class Constraint
    extends Object
    implements Shiftable
    Deprecated.
    Deprecated in 4.0.0. Replacement was not needed.
    Represents some physical constraint between a pair of Bodys.
    Since:
    1.0.0
    Version:
    4.0.0
    Author:
    William Bittle
    • Constructor Detail

      • Constraint

        public Constraint​(Body body1,
                          Body body2)
        Deprecated.
        Full constructor.
        Parameters:
        body1 - the first participating Body
        body2 - the second participating Body
        Throws:
        NullPointerException - if body1 or body2 is null
    • Method Detail

      • getBody1

        public Body getBody1()
        Deprecated.
        Returns the first Body.
        Returns:
        Body
      • getBody2

        public Body getBody2()
        Deprecated.
        Returns the second Body.
        Returns:
        Body