Merge branch 'master' of http://xny.yj-3d.com:3000/zh/sdk4.0_new
This commit is contained in:
@ -271,8 +271,10 @@ class Submerge extends Tools {
|
|||||||
that.options.waterVolume = Math.floor(value * 10000) / 10000;
|
that.options.waterVolume = Math.floor(value * 10000) / 10000;
|
||||||
|
|
||||||
if (that.area) {
|
if (that.area) {
|
||||||
|
|
||||||
that.waterLevel = Number((that.options.waterVolume / that.area).toFixed(4))
|
that.waterLevel = Number((that.options.waterVolume / that.area).toFixed(4))
|
||||||
that.options.maxWaterLevel = that.options.minWaterLevel + that.waterLevel
|
console.log(that.options.minWaterLevel, that.options.minWaterLevel, 'klklklkl')
|
||||||
|
that.options.maxWaterLevel = Math.floor((that.options.minWaterLevel) * 10000) / 10000 + Math.floor((that.options.minWaterLevel) * 10000) / 10000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user