How to use the Ray function from three

Find comprehensive JavaScript three.Ray code examples handpicked from public code repositorys.

74
75
76
77
78
79
80
81
82
83
84
85
86
}


MeshLine.prototype.raycast = ( function () {


	var inverseMatrix = new THREE.Matrix4();
	var ray = new THREE.Ray();
	var sphere = new THREE.Sphere();


	return function raycast( raycaster, intersects ) {

fork icon0
star icon2
watch icon1

+ 52 other calls in file

117
118
119
120
121
122
123
124
125
126
this.process();
}

function MeshLineRaycast(raycaster, intersects) {
  var inverseMatrix = new THREE.Matrix4()
  var ray = new THREE.Ray()
  var sphere = new THREE.Sphere()
  var interRay = new THREE.Vector3()
  var geometry = this.geometry
  // Checking boundingSphere distance to ray
fork icon0
star icon1
watch icon1

34
35
36
37
38
39
40
41
42
43
44
45
46
var _camera;
var _scene;
var _renderer;


var _time = 0;
var _ray = new THREE.Ray();


var _initAnimation = 0;


var _bgColor;
fork icon0
star icon0
watch icon0

+ 2 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)