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
  • 202,892
  • 27
  • 131
  • 174
StonksMan9000
  • 321
  • 8
  • 21

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
  • 32,200
  • 11
  • 64
  • 79
1

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