大约有 64 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0032 秒)
...0, 0.01, 0); onStart() { Laya.timer.frameLoop(1, this, ()=> { this.cube.transform.rotate(this.rotation, false); }); } } 效果如动图1-4所示: (动图1-4) 1.3 3D节点的进阶使用 @property( { type :Laya.Sprite3D } ) //节点类型 public p3d: Laya.Sprite3D; onAwake(): void { this.p3d...
来源: Laya3.0_文档 发布时间: 20251010
...= scene.addChild(new Laya.Camera(0, 0.3, 100)) as Laya.Camera; this.camera.transform.translate(new Laya.Vector3(0, 25, 16)); this.camera.transform.rotate(new Laya.Vector3(-56, 0, 0), true, false); 2018-10-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20181015
...ternion=new Quaternion(); var dir:Vector3=new Vector3() ; Vector3.subtract(transform.position,sphere3D.transform.position,dir); Quaternion.rotationLookAt(dir,Vector3.Up,out); Quaternion.slerp(transform.rotation,out, Laya.timer.delta/1000,out1); transform.rotation = out1; transform.translate(v3) ...
来源: Laya_社区 发布时间: 20180726
...上OK,移动端没试,有问题调试着改一改就OK啦。。import Transform3D = Laya.Transform3D; import Vector3 = laya.d3.math.Vector3; import Quaternion = laya.d3.math.Quaternion; /* 用法: //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Ca...
来源: Laya_社区 发布时间: 20190224
...mer.frameLoop(1, this, function():void{ camare.transform.rotate(_rotateC); }); } 这个并不是绕物体旋转的 2017-06-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20170607
...型,本节课中介绍该类来创建其他的基础模型,并且使用transform来调整位置。更详细的使用情况可以[查看API](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.resource.models.PrimitiveMesh)。 创建时需注意的是,加载到...
来源: Laya2.0_文档 发布时间: 20210715
...关于四元数的相关内容 w1114367261 • 2018-04-18 20:20 Sprite3D.transform.rotate.Quaternion.createFromAxisAngle();
来源: Laya_社区 发布时间: 20180418
...型,本节课中介绍该类来创建其他的基础模型,并且使用transform来调整位置。更详细的使用情况可以[查看API](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.resource.models.PrimitiveMesh)。 创建时需注意的是,加载到...
来源: Laya2.0_文档 发布时间: 20210714
...型,本节课中介绍该类来创建其他的基础模型,并且使用transform来调整位置。更详细的使用情况可以[查看API](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.resource.models.PrimitiveMesh)。 创建时需注意的是,加载到...
来源: Laya2.0_文档 发布时间: 20210715
...= new Laya.StandardMaterial(); dhBox.meshRender.material = dhBoxMat; dhBox.transform.position = new Laya.Vector3(0.32, 2.13, 34.1); dhBox.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); dhBox.layer = Laya.Layer.getLayerByNumber(10); 然后这样去检测他 Laya.Physics.rayCast(ray, _outH...
来源: Laya_社区 发布时间: 20180409