Three.js源码学习(十六)core/Raycaster
2018-06-19 本文已影响0人
yuriy0_0
constructor
Raycaster(origin,direction,near,far)
ray
near
far
params = {
Mesh: {},
Line: {},
LOD: {},
Points: { threshold: 1 },
Sprite: {}
}
method方法
set(orgin,direction)
设置光线源点和方向
setFromCamera(coords,camera)
从相机设置ray
intersectObject(object,recursive,optionalTarget)
intersectObjects(objects,recursive,optionalTarget)