修改徐州三位沙盘模型配置
This commit is contained in:
parent
99305b1f48
commit
8b0f62ca39
@ -297,17 +297,15 @@ export function JLmap3d(dom, data,skinCode,storemod,routegroup,project) {
|
||||
|
||||
//三维交互点击事件函数
|
||||
function onselect(event) {
|
||||
if(event.button == "0"){
|
||||
if(controlManager.controlMode != 'fps'){
|
||||
//定义光线
|
||||
let raycaster = new THREE.Raycaster();
|
||||
//定义平面鼠标点击坐标
|
||||
let mouse = new THREE.Vector2();
|
||||
mouse.x = (event.clientX / window.innerWidth) * 2 - 1;
|
||||
mouse.y = -(event.clientY / window.innerHeight) * 2 + 1;
|
||||
|
||||
raycaster.setFromCamera( mouse, controlManager.orbitCamera );
|
||||
if(controlManager.controlMode != 'fps' && event.button == "0" && stationstandlist){
|
||||
//定义光线
|
||||
let raycaster = new THREE.Raycaster();
|
||||
//定义平面鼠标点击坐标
|
||||
let mouse = new THREE.Vector2();
|
||||
mouse.x = (event.clientX / window.innerWidth) * 2 - 1;
|
||||
mouse.y = -(event.clientY / window.innerHeight) * 2 + 1;
|
||||
|
||||
raycaster.setFromCamera( mouse, controlManager.orbitCamera );
|
||||
//从站台对象组获取点击目标
|
||||
let intersects1 = raycaster.intersectObjects( stationstandlist.group.children,true);
|
||||
|
||||
@ -319,7 +317,6 @@ export function JLmap3d(dom, data,skinCode,storemod,routegroup,project) {
|
||||
controlManager.attachFpsCamera(intersects1[0].object.parent,intersects1[0].point);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -226,7 +226,6 @@ export function AssetLoader() {
|
||||
if (project == "say") {
|
||||
let nologoStationNc = new AssetModel(nologonc);
|
||||
scope.modellist.push(nologonc);
|
||||
console.log(nologohc);
|
||||
let nologoStationHc = new AssetModel(nologohc);
|
||||
scope.modellist.push(nologohc);
|
||||
}
|
||||
|
@ -184,6 +184,16 @@ export function StationStandListN() {
|
||||
}
|
||||
}
|
||||
|
||||
if (project == "say") {
|
||||
if (assetloader.modellist[j].type == "nologonc") {
|
||||
nologonc = assetloader.modellist[j].mesh;
|
||||
// assetloader.modellist[num2].mesh.rotation.y = Math.PI/2;
|
||||
}
|
||||
if (assetloader.modellist[j].type == "nologohc") {
|
||||
nologohc = assetloader.modellist[j].mesh;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
selectmesh1.traverse(function(child) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user