大约有 479 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0040 秒)
Laya_社区(314) Laya3.0_api(57) Laya2.0_api(45) Laya2.0_文档(38) Laya_示例(8) Laya3.0_文档(7) laya_api(5) Laya2.0_示例(5)
...、滤镜组件(Filters),绘图组件(Graphics)、物理组件(physics)、UI组件(UI)、公共组件(common),如图1所示。开发者也可以自定义组件。本篇将围绕UI组件进行介绍。  (图1) ## 1、UI组件的分类 根据组件自身...
来源: Laya2.0_文档 发布时间: 20200609
...form3D SoundChannel Sound HttpRequest Loader AnimatorState AnimatorState2D Physics AnimationPlayer AxiGamepad ButtonGamepad WebXRInput WebXRSessionManager Accelerator Shake Gyroscope Socket TimeLine Index Methods event hasListener off offAll offAllCaller on once Methods event event(type: string, dat...
来源: Laya3.0_api 发布时间: 20231115
...基本的形状拼出地形 Mr.余 • 2018-06-12 13:55 @Laya_Aaron:Laya.Physics.rayCast这函数是检查不到MeshCollider的吗。感觉laya很多东西都不全面啊-。
来源: Laya_社区 发布时间: 20180530
...; //射线检测获取所有检测碰撞到的物体 Physics.rayCastAll(ray, _outHitAllInfo, 500, 0); 这是通过屏幕当前鼠标位置获取一条射线碰撞集合,然后我又创建了一个Button,点击Button时发现射线也响应了,如何能让点击UI时不...
来源: Laya_社区 发布时间: 20180120
...斌 赞同来自: 在index.js 里面引入3d库文件 loadLib("libs/laya.physics3D.js") 2019-04-02 0 0 分享 微博 QZONE 微信 1573629845用户 赞同来自: 我也遇到了同样得问题不知道如何解决 TypeError: Cannot read property 'props' of undefined preload.js:55 at Function._getS...
来源: Laya_社区 发布时间: 20180925
...用raycast选取实体,hitresult始终是false 按照官方范例,Laya.Physics.raycast方法已经不能用了; 从网上找了physicsSimulation.raycast方法,但无论如何,outHitResult的结果都是false,不知道哪里设置不正确 另外,射线的位置和方向也很奇...
来源: Laya_社区 发布时间: 20191219
...ine: engine, width: 640, height: 480, options: { // background: '../../res/physics/img/background.png', wireframes: false//true// } }); // create two boxes and a ground var boxA = Bodies.rectangle(400, 200, 80, 80); var boxB = Bodies.rectangle(450, 50, 80, 80); var ground = Bodies.rectangle(400, 610...
来源: Laya_社区 发布时间: 20170905
...Manager.instance.mouseX,Laya.MouseManager.instance.mouseY),this.ray); Laya.Physics.rayCast(this.ray,this.hit); console.log("当前射线碰撞的信息是:" + this.hit.sprite3D.name); //摄像机位置 var position:Laya.Vector3=new Laya.Vector3(this.camera.position.x, 0, this.camera.position.z); //...
来源: Laya_社区 发布时间: 20181020
...ToRay(this.point, this.ray); //11111111111111就是下面这句报错 Laya.Physics.rayCast(this.ray, this._outHitInfo, Number.MAX_VALUE, 10); if (this._outHitInfo.sprite3D.name === "tlj"){ isRotate = !isRotate; } // this.phasorSpriter3D.begin(Laya.WebGLContext.LINES, state); // //绘出射线 // thi...
来源: Laya_社区 发布时间: 20170323
...Transform的Scale导致的,可以修改laya.d3.js文件里的_innerDerivePhysicsTransformation方法,加粗部分为补丁: if (shapeOffset.x !== 0 || shapeOffset.y !== 0 || shapeOffset.z !== 0) { var physicPosition = PhysicsComponent._tempVector30; ...
来源: Laya_社区 发布时间: 20191019