Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Checks whether the current BoundingBox intersects a Ray.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public void Intersects (
ref Ray ray,
out Nullable<float> result
)
Parameters
- ray
The Ray to check for intersection with. - result
[OutAttribute] Distance at which the ray intersects the BoundingBox, or null if there is no intersection.
See Also
Tasks
How to: Detect Whether Two Models Collide
Concepts
Reference
BoundingBox Structure
BoundingBox Members
Microsoft.Xna.Framework Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista