Package org.jbox2d.dynamics
Class WorldRayCastWrapper
- java.lang.Object
-
- org.jbox2d.dynamics.WorldRayCastWrapper
-
- All Implemented Interfaces:
TreeRayCastCallback
class WorldRayCastWrapper extends java.lang.Object implements TreeRayCastCallback
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BroadPhase
broadPhase
(package private) RayCastCallback
callback
private RayCastOutput
output
private Vec2
point
private Vec2
temp
-
Constructor Summary
Constructors Constructor Description WorldRayCastWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
raycastCallback(RayCastInput input, int nodeId)
-
-
-
Field Detail
-
output
private final RayCastOutput output
-
temp
private final Vec2 temp
-
point
private final Vec2 point
-
broadPhase
BroadPhase broadPhase
-
callback
RayCastCallback callback
-
-
Method Detail
-
raycastCallback
public float raycastCallback(RayCastInput input, int nodeId)
- Specified by:
raycastCallback
in interfaceTreeRayCastCallback
- Returns:
- the fraction to the node
-
-