Package com.ardor3d.intersection
Class PickData
java.lang.Object
com.ardor3d.intersection.PickData
- Direct Known Subclasses:
PrimitivePickData
PickData contains information about a picking operation (or Ray/Volume intersection). This data contains the mesh the
ray hit, the triangles it hit, and the ray itself.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
_intersectionRecord
-
-
Constructor Details
-
PickData
instantiates a new PickData object. Note: subclasses may want to make calc points false to prevent this extra work.- Parameters:
ray
- the raytarget
- the targetcalcPoints
-true
if the intersection points must be computed now
-
-
Method Details
-
getTarget
- Returns:
- the pickable hit by the ray.
-
getRay
- Returns:
- the ray used in the test.
-
getIntersectionRecord
- Returns:
- the intersection record generated for this pick. Will be null if calcPoints was false.
-