BoundingBox.Intersects Method (Ray)

Checks whether the current BoundingBox intersects a Ray.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public Nullable<float> Intersects (
         Ray ray
)

Parameters

ray
The Ray to check for intersection with.

Return Value

Distance at which the ray intersects the BoundingBox, or null if there is no intersection.

Xbox 360, Windows XP SP2, Windows Vista

Show: