大约有 986 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0043 秒)
Laya_社区(522) Laya3.0_api(117) Laya2.0_文档(110) Laya2.0_api(94) laya_api(83) Laya_示例(40) Laya3.0_文档(20)
...围90度 camera.fieldOfView = 90; //摄像机捕捉模型目标 camera.transform.lookAt(box.transform.position,new Laya.Vector3(0,-1,0)); 2017-08-09 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 好的,多多分享,这样也可以让更多的开发者受教(*^__^*) …… 2017-08-09...
来源: Laya_社区 发布时间: 20170809
...er.getChildByName("girl1") as Laya.Sprite3D; //模型缩放 this.roleModel.transform.localScale = new Laya.Vector3(0.8,0.8,0.8); //获取角色动画组件 this.roleAni = this.roleModel.getComponentByType(Laya.Animator) as Laya.Animator; //动画完成事件监听 this.roleAni.on(Laya.Event.COMPLETE...
来源: Laya_社区 发布时间: 20171113
...碰撞不触发onCollisionEnter rigidBody.isKinematic=true,通过transform移动碰撞, onCollisionEnter没触发。 附件 : --> demo.rar 2019-08-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复...
来源: Laya_社区 发布时间: 20190827
...= 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
... 不能检测碰撞,还是会穿过物体。物体移动是通过控制transform移动的 2018-12-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 閑好手游 赞同来自: 通过transform控制。。。。...
来源: Laya_社区 发布时间: 20181226
...相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionL...
来源: Laya_社区 发布时间: 20180104
..., 0.6); var box = new Laya.MeshSprite3D(boxmesh); scene.addChild(box); box.transform.translate(_position); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.mate...
来源: Laya_社区 发布时间: 20181126
..._onAniSoundStoped有时会报undefined错误 discard property,please use transform's property instead XmlDom类没有了?解析xml时,报错Property 'attributes' does not exist on type 'Node & ChildNode'. 问题状态 最新活动: 2018-10-09 13:37 浏览: 2333 关注: 2 人 阿沥❤ • 20...
来源: Laya_社区 发布时间: 20181009
...大小 camera.orthographicVerticalSize = 7; //移动摄像机位置 camera.transform.translate(new Vector3(0, 26.5, 45)); //旋转摄像机角度 camera.transform.rotate(new Vector3( -30, 0, 0), true, false); ``` (图2)正交投影的效果图
来源: Laya2.0_文档 发布时间: 20210715
...argetCamera = scene.addChild(new Camera(0, 0.3, 1000)); renderTargetCamera.transform.position = new Vector3(-28.8, 8, -60); renderTargetCamera.transform.rotate(new Vector3(0, 180, 0), true, false); //选择渲染目标为纹理 renderTargetCamera.renderTarget = new RenderTexture(512, 512); //渲染...
来源: Laya2.0_文档 发布时间: 20210715