- Object
-
- RaycastResult
-
- All Implemented Interfaces:
Comparable<RaycastResult>
@Deprecated public class RaycastResult extends Object implements Comparable<RaycastResult>
Deprecated.Deprecated in 4.0.0. Use the RaycastResult in the world package instead.Represents the result of a raycast.Implements the Comparable interface to allow for sorting by the distance.
Note: this class has a natural ordering that is inconsistent with equals.
- Since:
- 2.0.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Constructor Summary
Constructors Constructor Description RaycastResult()
Deprecated.Default constructor.RaycastResult(Body body, BodyFixture fixture, Raycast raycast)
Deprecated.Full constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
compareTo(RaycastResult o)
Deprecated.Body
getBody()
Deprecated.Returns theBody
detected.BodyFixture
getFixture()
Deprecated.Returns theBodyFixture
of theBody
detected.Raycast
getRaycast()
Deprecated.Returns theRaycast
result information.void
setBody(Body body)
Deprecated.Sets theBody
detected.void
setFixture(BodyFixture fixture)
Deprecated.Sets theBodyFixture
of theBody
detected.void
setRaycast(Raycast raycast)
Deprecated.Sets theRaycast
result information.String
toString()
Deprecated.
-
-
-
Constructor Detail
-
RaycastResult
public RaycastResult()
Deprecated.Default constructor.
-
RaycastResult
public RaycastResult(Body body, BodyFixture fixture, Raycast raycast)
Deprecated.Full constructor.- Parameters:
body
- the bodyfixture
- the fixtureraycast
- the raycast
-
-
Method Detail
-
compareTo
public int compareTo(RaycastResult o)
Deprecated.- Specified by:
compareTo
in interfaceComparable<RaycastResult>
-
setBody
public void setBody(Body body)
Deprecated.Sets theBody
detected.- Parameters:
body
- theBody
-
getFixture
public BodyFixture getFixture()
Deprecated.Returns theBodyFixture
of theBody
detected.- Returns:
BodyFixture
-
setFixture
public void setFixture(BodyFixture fixture)
Deprecated.Sets theBodyFixture
of theBody
detected.- Parameters:
fixture
- theBodyFixture
-
getRaycast
public Raycast getRaycast()
Deprecated.Returns theRaycast
result information.- Returns:
Raycast
-
-