Function useFiveModelIntersectRaycaster

  • Five React Hooks: 获取当前模型碰撞检测方法

    Returns ((raycaster: Raycaster) => Intersection[])

    fiveModelIntersectRaycaster

    计算模型射线碰撞检测
    // param raycaster THREE 射线对象
    // param floors 和某一楼层做碰撞检测, 不传为和所有楼层做碰撞检测
    // returns 返回碰撞
    intersectRaycaster(raycaster: THREE.Raycaster, floors?: number | number[]): Intersection[]
    const fiveModelIntersectRaycaster = useFiveModelIntersectRaycaster();
    const intersects = fiveModelIntersectRaycaster(raycaster);