我有一个模型,我使用平移手势旋转。它工作正常,但它不会旋转360度。它旋转到180然后停止。此外,如果我结束平移手势并再次启动,则重置位置。这是我的代码。
loadInfo(): void {
var test = this.web3Service.getInfo(this.address);
test.then((value) => { // <=== changed this line
this.handleInfo(value) // <=== changed this line
});
}
handleInfo(value): void { // <=== added this whole method.
this.infoMapped = value;
var length = this.infoMapped.matchId;
for (var i = 0; i < length; i++) {
//...
}
}