mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-30 18:39:18 +08:00
修复轨道摄影机OrbitCamera的目标对象释放时,相机跟随逻辑报错问题
This commit is contained in:
@@ -220,7 +220,7 @@ export class OrbitCamera extends Component {
|
||||
targetRotation.y += this.autoRotateSpeed * dt;
|
||||
}
|
||||
|
||||
if (this.target) {
|
||||
if (this.target && this.target.isValid) {
|
||||
// 重置摄像机中心点
|
||||
this._targetCenter.set(this.target.worldPosition);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user