Method Raycast
- Namespace
- Box3D
- Assembly
- Box3D.NET.dll
Raycast(Vector3, Vector3)
Casts a ray directly against this shape, skipping the broad phase.
public RaycastHit Raycast(Vector3 origin, Vector3 translation)Parameters
originVector3-
The start of the ray, in world space.
translationVector3-
The ray vector; its length is the range.
Returns
- RaycastHit
-
Where the ray met the shape.
Remarks
Faster than a world cast when you already know which shape you care about.