|
@@ -208,8 +208,11 @@ export class QingXiCheAndQvThreeWorldEventMain {
|
|
|
*
|
|
|
* 所以
|
|
|
* 将人物的出生地更新到,最后一次人物的坐标
|
|
|
+ *
|
|
|
+ * birthplaceBool 是否是重置到自定义的坐标
|
|
|
+ *
|
|
|
*/
|
|
|
- commonBirthplaceUpdate = function() {
|
|
|
+ commonBirthplaceUpdate = function(birthplaceBool) {
|
|
|
|
|
|
var objIframeEdit = this.objIframeEdit;
|
|
|
var objIframe = this.objIframe;
|
|
@@ -224,23 +227,52 @@ export class QingXiCheAndQvThreeWorldEventMain {
|
|
|
"z" : absolutePosition.z,
|
|
|
}));
|
|
|
|
|
|
- for (var i = 0; i < ChengGuangYuanJing.CommonBirthplace.find().list.length; i++) {
|
|
|
+ // for (var i = 0; i < ChengGuangYuanJing.CommonBirthplace.find().list.length; i++) {
|
|
|
|
|
|
- var thisList = ChengGuangYuanJing.CommonBirthplace.find().list[i];
|
|
|
- // console.log(
|
|
|
- // "thisList", thisList, absolutePositionNew
|
|
|
- // );
|
|
|
+ // var thisList = ChengGuangYuanJing.CommonBirthplace.find().list[i];
|
|
|
+ // // console.log(
|
|
|
+ // // "thisList", thisList, absolutePositionNew
|
|
|
+ // // );
|
|
|
|
|
|
- thisList.position.x = absolutePositionNew.x;
|
|
|
- thisList.position.y = absolutePositionNew.y;
|
|
|
- thisList.position.z = absolutePositionNew.z;
|
|
|
+ // thisList.position.x = absolutePositionNew.x;
|
|
|
+ // thisList.position.y = absolutePositionNew.y;
|
|
|
+ // thisList.position.z = absolutePositionNew.z;
|
|
|
|
|
|
- thisList.positionTarget.x = absolutePositionNew.x;
|
|
|
- thisList.positionTarget.y = absolutePositionNew.y;
|
|
|
- thisList.positionTarget.z = absolutePositionNew.z;
|
|
|
+ // thisList.positionTarget.x = absolutePositionNew.x;
|
|
|
+ // thisList.positionTarget.y = absolutePositionNew.y;
|
|
|
+ // thisList.positionTarget.z = absolutePositionNew.z;
|
|
|
|
|
|
- }
|
|
|
+ // }
|
|
|
|
|
|
+ // 如果是出生,则设置指定的参数
|
|
|
+ if (birthplaceBool == true) {
|
|
|
+
|
|
|
+ let birthplaceInit = {
|
|
|
+ "code": "1757044395413",
|
|
|
+ "name": "出生地",
|
|
|
+ "position": {
|
|
|
+ "x": 0.36538233957617505,
|
|
|
+ "y": 2.108317829319077,
|
|
|
+ "z": 2.889462045867414
|
|
|
+ },
|
|
|
+ "alpha": -4.893234984275375,
|
|
|
+ "beta": 1.651446745038209,
|
|
|
+ "radius": 9.455934731777727,
|
|
|
+ "positionTarget": {
|
|
|
+ "x": 3.813143253326416,
|
|
|
+ "y": 1.2875758409500122,
|
|
|
+ "z": 8.668329238891602
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ absolutePositionNew.x = birthplaceInit.position.x;
|
|
|
+ absolutePositionNew.y = birthplaceInit.position.y;
|
|
|
+ absolutePositionNew.z = birthplaceInit.position.z;
|
|
|
+
|
|
|
+ console.log("更新了出生地的位置", absolutePositionNew);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
// ChengGuangYuanJing.CommonVal.find().roleConfig.position.x = absolutePositionNew.x;
|
|
|
// ChengGuangYuanJing.CommonVal.find().roleConfig.position.y = absolutePositionNew.y;
|
|
|
// ChengGuangYuanJing.CommonVal.find().roleConfig.position.z = absolutePositionNew.z;
|