0

While working with THREE.js and Electron, I came across this statement which I don't fully understand

var raycaster = new THREE.Raycaster(),INTERSECTED;

What does this syntax define in terms of the var raycaster? How can I use INTERSECTED purely from a syntactical view?

Rabbid76
  • 177,135
  • 25
  • 101
  • 146
StonksMan9000
  • 301
  • 6
  • 20

2 Answers2

2

This line declares two variables and initializes one of them. raycaster has been initialized to an instance of a three-js raycaster object, while INTERSECTED has been declared but is undefined at this point.

Dennis
  • 31,394
  • 10
  • 61
  • 78
1

var raycaster = new THREE.Raycaster(); var INTERSECTED;