-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the computation of shadow points (#22)
Clear the intersections vector before each intersectsRay() call so that intersections[0] subsequently corresponds to the j-th body. Previously, only the dot product resulting from the first body intersecting the ray has been considered, ignoring all further intersections which have been appended to the intersections vector. Co-authored-by: chris20623 <[email protected]>
- Loading branch information
1 parent
b20cfb5
commit b24715a
Showing
1 changed file
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters