Files
RCBASIC4/doc/doc_files/getrayhit2d.html
2026-02-26 15:33:51 -06:00

36 lines
902 B
HTML

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>GetRayHit2D [RCBasic Doc] </title>
</head>
<body>
<p><h2>Sub GetRayHit2D( index, ByRef spr_id, ByRef x, ByRef y, ByRef normal_x, ByRef normal_y ) </h2></p>
<p>
This function will get the collision point and the normal of a ray hit.
</p>
<p>
NOTES:
</p>
<ul>
<li>
CastRay2D or CastRay2D_All must be called prior to calling this function
</li>
<li>
spr_id will return -1 if there was not a hit at the specified index
</li>
</ul>
<br><p>Related:
<a href="getrayhit3d.html">GetRayHit3D</a>
<a href="castray3d.html">CastRay3D</a>
<a href="castray3d_all.html">CastRay3D_All</a>
<a href="castray2d.html">CastRay2D</a>
<a href="castray2d_all.html">CastRay2D_All</a>
</p>
<p>
</p>
</body>
</html>