增加地面,增加放置区域筛选逻辑
This commit is contained in:
@ -31,8 +31,8 @@ export class AppCamera extends Monobehiver {
|
||||
// 限制垂直角范围,实现上帝视角
|
||||
this.object.upperBetaLimit = Tools.ToRadians(90); // 最大垂直角(接近90度,避免万向锁)
|
||||
|
||||
this.object.position = new Vector3(-0, 10, 0);
|
||||
this.setTarget(0, 2, 0);
|
||||
this.object.position = new Vector3(0, 10, 0);
|
||||
this.setTarget(0, 0.5, 0);
|
||||
}
|
||||
|
||||
/** 设置相机目标点 */
|
||||
|
||||
Reference in New Issue
Block a user