大约有 364 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0047 秒)
Laya_社区(152) Laya2.0_文档(80) Laya3.0_api(43) laya_api(39) Laya2.0_api(33) Laya3.0_文档(15) Laya_示例(2)
...er.bounds; render._distanceForSort=Vector3.distance(bounds.getCenter(),camPos); var elements=render._renderElements; for (var j=0,m=elements.length;j < m;j++){ ...
来源: Laya_社区 发布时间: 20190711
...0.1, 100)) as Camera; //设置相机1清除颜色 camera1.clearColor = new Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new Vector3(0, 0, 1.5)); //设置裁剪空间的视口 camera1.normalizedViewport = new Viewport(0, 0, 0.5, 1.0); //创建相机2 var camera2:Camera = scene.addChild(ne...
来源: Laya2.0_文档 发布时间: 20210715
...fined in laya/d3/core/trail/TrailFilter.ts:65 _lastPosition _lastPosition: Vector3 = new Vector3() Defined in laya/d3/core/trail/TrailFilter.ts:63 _ownerRender _ownerRender: TrailRenderer Defined in laya/d3/core/trail/TrailFilter.ts:62 alignment alignment: TrailAlignment = TrailAlignment.View Define...
来源: Laya3.0_api 发布时间: 20231115
...; // scene_360.addChild(camera); camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position = new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addComponent(ModelViewer); modelViewer.AroundPos = Laya.Vector3._ZERO; var directionLight = (scene_360 as Laya.Node)...
来源: Laya_社区 发布时间: 20190813
...机问题 Laya.camera.moveVertical(cameramovespeed); var outpos = new Laya.Vector3(); Laya.camera.worldToViewportPoint(new Laya.Vector3(seeObject.position.x,seeObject.position.y,seeObject.position.z), outpos); 相机移动后用worldToViewportPoint获取模型相对屏幕位置不准确,能看到...
来源: Laya_社区 发布时间: 20180531
...又被移除,还能通过Ray进行碰撞检测么? var outHitAllInfo:Vector.<RaycastHit> = new Vector.<RaycastHit>(); point.elements[0] = MouseManager.instance.mouseX; point.elements[1] = MouseManager.instance.mouseY; ray.direction.x = 0; ray.direction.y = 0; ray.direction.z = 0; ray...
来源: Laya_社区 发布时间: 20171017
...yaExport.DataManager:getComponentsData(GameObject, JSONObject, JSONObject, Vector3, Quaternion, Vector3, String&) 请问下是不支持什么格式吗? 2018-03-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...
来源: Laya_社区 发布时间: 20180321
...etShaderDataByIndex getShaderPropertyValue getTexture getTextureByIndex getVector2 getVector2ByIndex getVector3 getVector3ByIndex getVector4 getVector4ByIndex hasDefine hasListener isCreateFromURL off offAll offAllCaller oldparseEndEvent on once removeDefine setBool setBoolByIndex setBuffer setBuffe...
来源: Laya3.0_api 发布时间: 20231115
... // rig.restitution = 0.9; // rig.gravity = new Laya.Vector3(0, -10, 0); // rig.overrideGravity = true; //这里如果不把原来的刚体销毁重新设置,篮球不会落下来 rig.destroy(); const rigi...
来源: Laya_社区 发布时间: 20230220
...w Laya.Camera()) as Laya.Camera; this.camera.transform.position = new Laya.Vector3(0, 0, 5); this.camera.transform.rotate(new Laya.Vector3(0, 0, 0), true, false); Laya.stage.on(Event.MOUSE_WHEEL,this,this.onMouseWheel); } private onMouseWheel(e:Event):void { e. //没有delta 属性 } } } new laya.In...
来源: Laya_社区 发布时间: 20170321