美文网首页
Three.js源码学习(十六)core/Raycaster

Three.js源码学习(十六)core/Raycaster

作者: yuriy0_0 | 来源:发表于2018-06-19 19:22 被阅读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)

    相关文章

      网友评论

          本文标题:Three.js源码学习(十六)core/Raycaster

          本文链接:https://www.haomeiwen.com/subject/owrzeftx.html