大约有 13 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0024 秒)
...点击按钮切换注视目标。 ```typescript //up向量 private var _up:Vector3 = new Vector3(0, 1, 0); ``` ```typescript //点击事件 changeActionButton.on(Event.CLICK, this, function():void{ index++; if (index % 3 === 1 ){ //摄像机捕捉模型目标 camera.transform.lookAt(box.transform.po...
来源: Laya2.0_文档 发布时间: 20210714
...按钮切换注视目标。 ```typescript //up向量 this._up = new Laya.Vector3(0, 1, 0); ``` ```typescript //点击事件 this.changeActionButton.on(Laya.Event.CLICK, this, function(){ this.index++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.box.tra...
来源: Laya2.0_文档 发布时间: 20210715
...钮切换注视目标。 ```typescript //up向量 private _up = new Laya.Vector3(0, 1, 0); ``` ```typescript //点击事件 this.changeActionButton.on(Laya.Event.CLICK, this, function(){ this.index++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.box.tra...
来源: Laya2.0_文档 发布时间: 20210715
...1)))); //设置材质 var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; pos.setValue(0, 5, 0); transform.position = pos; //创建刚体碰撞器 var rigidBody: Rigidbody3D = box.addComponent(Rigidbody3D); //创建盒子形状碰撞器 var boxShape: BoxColliderShape =...
来源: Laya2.0_文档 发布时间: 20210715
...1)))); //设置材质 var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; pos.setValue(0, 5, 0); transform.position = pos; //创建刚体碰撞器 var rigidBody: Rigidbody3D = box.addComponent(Rigidbody3D); //创建盒子形状碰撞器 var boxShape: BoxColliderShape =...
来源: Laya2.0_文档 发布时间: 20210715
...ite3D; //设置材质 var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; pos.setValue(0, 5, 0); transform.position = pos; //创建刚体碰撞器 var rigidBody: Rigidbody3D = box.addComponent(Rigidbody3D); //创建盒子形状碰撞器 var boxShape: BoxColliderShape =...
来源: Laya2.0_文档 发布时间: 20210714
...转。 ```typescript //移动摄像机 camera.transform.translate(new Laya.Vector3(0, 3, 3)); //旋转摄像机 camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); ``` 关于旋转,在Transform3D中提供了两种旋转接口,一种是角度/弧度旋转`rotate`,还一种是欧...
来源: Laya2.0_文档 发布时间: 20210715
...旋转。 ```typescript //移动摄像机 camera.transform.translate(new Vector3(0, 3, 3)); //旋转摄像机 camera.transform.rotate(new Vector3(-30, 0, 0), true, false); ``` 关于旋转,在Transform3D中提供了两种旋转接口,一种是角度/弧度旋转`rotate`,还一种是欧拉角...
来源: Laya2.0_文档 发布时间: 20210714
...转。 ```typescript //移动摄像机 camera.transform.translate(new Laya.Vector3(0, 3, 3)); //旋转摄像机 camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); ``` 关于旋转,在Transform3D中提供了两种旋转接口,一种是角度/弧度旋转`rotate`,还一种是欧...
来源: Laya2.0_文档 发布时间: 20210715
...1.0, 3.4); //设置Shape的本地偏移 sphereShape.localOffset = new Laya.Vector3(0, 1.7, 0); //设置角色控制器的碰撞形状 character.colliderShape = sphereShape; ``` (图3)
来源: Laya2.0_文档 发布时间: 20210715