()
| 260 | }; |
| 261 | |
| 262 | function updateStatus() { |
| 263 | switch (mode) { |
| 264 | case CLOSEST: |
| 265 | testbed.status("Ray-cast mode", "Closest - find closest fixture along the ray"); |
| 266 | break; |
| 267 | |
| 268 | case ANY: |
| 269 | testbed.status("Ray-cast mode", "Any - check for obstruction"); |
| 270 | break; |
| 271 | |
| 272 | case MULTIPLE: |
| 273 | testbed.status("Ray-cast mode", "Multiple - gather multiple fixtures"); |
| 274 | break; |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | testbed.step = function () { |
| 279 | const advanceRay = true; |