Skip to content

Commit 92e2535

Browse files
authored
Merge pull request #197668 from FlorianBorn71/FixARRRaycastLength
The raycast length was incorrect in the docs for the C++ example
2 parents 533077b + 87bb861 commit 92e2535

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

articles/remote-rendering/overview/features/spatial-queries.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ void CastRay(ApiHandle<RenderingSession> session)
5656
// trace a line from the origin into the +z direction, over 10 units of distance.
5757
RayCast rayCast;
5858
rayCast.StartPos = {0, 0, 0};
59-
rayCast.EndPos = {0, 0, 1};
60-
rayCast.MaxHits = 10;
59+
rayCast.EndPos = {0, 0, 10};
6160

6261
// only return the closest hit
6362
rayCast.HitCollection = HitCollectionPolicy::ClosestHit;

0 commit comments

Comments
 (0)