Module org.dyn4j

Class DetectResult


  • @Deprecated
    public class DetectResult
    extends Object
    Deprecated.
    Deprecated in 4.0.0. Use the DetectResult class in the world package instead.
    Represents the result of a static detection of the world.
    Since:
    3.1.9
    Version:
    4.0.0
    Author:
    William Bittle
    • Constructor Detail

      • DetectResult

        public DetectResult()
        Deprecated.
        Default constructor.
      • DetectResult

        public DetectResult​(Body body,
                            BodyFixture fixture)
        Deprecated.
        Optional constructor.
        Parameters:
        body - the body
        fixture - the fixture
      • DetectResult

        public DetectResult​(Body body,
                            BodyFixture fixture,
                            Penetration penetration)
        Deprecated.
        Full constructor.
        Parameters:
        body - the body
        fixture - the fixture
        penetration - the penetration; can be null
    • Method Detail

      • getBody

        public Body getBody()
        Deprecated.
        Returns the overlapping body.
        Returns:
        Body
      • setBody

        public void setBody​(Body body)
        Deprecated.
        Sets the overlapping body.
        Parameters:
        body - the Body
      • getFixture

        public BodyFixture getFixture()
        Deprecated.
        Returns the overlapping fixture.
        Returns:
        BodyFixture
      • setFixture

        public void setFixture​(BodyFixture fixture)
        Deprecated.
        Sets the overlapping fixture.
        Parameters:
        fixture - the BodyFixture
      • getPenetration

        public Penetration getPenetration()
        Deprecated.
        Returns the overlap penetration (collision data).

        This will return null if the collision data was flagged to not be included.

        Returns:
        Penetration
      • setPenetration

        public void setPenetration​(Penetration penetration)
        Deprecated.
        Sets the overlap penetration (collision data).
        Parameters:
        penetration - the Penetration; can be null