|
@@ -341,6 +341,16 @@ export class QingXiCheAndQvThreeWorldEventMain {
|
|
|
var ChengGuangYuanJing = this.objIframe.ChengGuangYuanJing;
|
|
|
|
|
|
var absolutePosition = ChengGuangYuanJing.Role.find().objRole._absolutePosition;
|
|
|
+
|
|
|
+ // 先判断是否完成绕一圈的逻辑
|
|
|
+ let aroundTheCarPointNum = 0;
|
|
|
+ for (let key in QingXiCheAndQvCarEvent.find().aroundTheCarPointRecord) {
|
|
|
+ aroundTheCarPointNum += 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (aroundTheCarPointNum >= 8) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
|
|
|
for (let key in QingXiCheAndQvCarEvent.find().aroundTheCarPoint) {
|
|
|
|
|
@@ -359,11 +369,11 @@ export class QingXiCheAndQvThreeWorldEventMain {
|
|
|
new BABYLON.Vector3(parseFloat(positionTarget.x), parseFloat(positionTarget.y), parseFloat(positionTarget.z))
|
|
|
);
|
|
|
|
|
|
- console.log('aroundTheCarPointBool ---', key, thisVector3distanceTo);
|
|
|
+ // console.log('aroundTheCarPointBool ---', key, thisVector3distanceTo);
|
|
|
|
|
|
- // if (thisVector3distanceTo <= 9) {
|
|
|
- // return true;
|
|
|
- // }
|
|
|
+ if (thisVector3distanceTo <= 3) {
|
|
|
+ QingXiCheAndQvCarEvent.find().aroundTheCarPointRecord[key] = key;
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|