Commit 3273959
committed
raycastVoxels() default normal to top face if hits inside voxel
voxel-raycast can return a hit normal of [0,0,0] if, for example, the
starting position is within a voxel, but this is not a valid normal
vector. If this happens, instead default to [0,1,0], the top face.1 parent 6b5c953 commit 3273959
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
283 | 289 | | |
284 | 290 | | |
285 | 291 | | |
| |||
0 commit comments