-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
raycast(Ray ray, double maxLength, Convex convex, Transform transform, Raycast raycast)
-
-
-
Method Detail
-
raycast
boolean raycast(Ray ray, double maxLength, Convex convex, Transform transform, Raycast raycast)
Performs a ray cast given aRay
and aConvex
Shape
returning true if the ray passes through the convex shape.The raycast parameter is used to stored the results of the raycast when returning true.
Returns false if the start position of the ray lies inside the given convex.
NOTE: It's the responsibility of the caller to clear the given
Raycast
object before calling this method.
-
-