35 lines
895 B
HTML
35 lines
895 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>
|
|
|
|
</body>
|
|
</html> |