修改徐州三位沙盘模型配置

This commit is contained in:
“sunzy” 2021-12-20 10:46:20 +08:00
parent 99305b1f48
commit 8b0f62ca39
3 changed files with 18 additions and 12 deletions

View File

@ -297,8 +297,7 @@ export function JLmap3d(dom, data,skinCode,storemod,routegroup,project) {
//三维交互点击事件函数
function onselect(event) {
if(event.button == "0"){
if(controlManager.controlMode != 'fps'){
if(controlManager.controlMode != 'fps' && event.button == "0" && stationstandlist){
//定义光线
let raycaster = new THREE.Raycaster();
//定义平面鼠标点击坐标
@ -307,7 +306,6 @@ export function JLmap3d(dom, data,skinCode,storemod,routegroup,project) {
mouse.y = -(event.clientY / window.innerHeight) * 2 + 1;
raycaster.setFromCamera( mouse, controlManager.orbitCamera );
//从站台对象组获取点击目标
let intersects1 = raycaster.intersectObjects( stationstandlist.group.children,true);
@ -321,7 +319,6 @@ export function JLmap3d(dom, data,skinCode,storemod,routegroup,project) {
}
}
}
}
//相机轨迹动画
this.camerarailmove = function(){

View File

@ -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);
}

View File

@ -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) {