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) BroadPhasebroadPhase(package private) RayCastCallbackcallbackprivate RayCastOutputoutputprivate Vec2pointprivate Vec2temp
-
Constructor Summary
Constructors Constructor Description WorldRayCastWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatraycastCallback(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:
raycastCallbackin interfaceTreeRayCastCallback- Returns:
- the fraction to the node
-
-