大约有 246 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0043 秒)
Laya_社区(130) Laya2.0_文档(50) Laya3.0_api(24) Laya_示例(21) Laya3.0_文档(13) laya_api(4) Laya2.0_api(4)
...ene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 0.7, 1.3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //点光源 var pointLight = scene.addChild(new Laya.PointLight());...
来源: Laya_示例 发布时间: 20241123
...e()); var camera = (scene.addChild(new Laya.Camera(0, 0.1, 1000))); camera.transform.translate(new Laya.Vector3(0, 0.7, 1.3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //聚光灯 var spotLight = scene.addChild(new Laya.SpotLight()); s...
来源: Laya_示例 发布时间: 20241123
...cene()); 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); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0...
来源: Laya_示例 发布时间: 20241123
...物位置,_position是缓动函数实时更新的坐标 roleModel.transform.position = _position; //设置射线原点 ray2.origin=new Vector3(roleModel.transform.position.x, roleModel.transform.position.y+10, roleModel.transform.position.z); //物理射线与碰撞器相交...
来源: Laya_社区 发布时间: 20170828
...Sprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D...
来源: Laya_社区 发布时间: 20190717
...cene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.35, 1)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); Laya.loader.create("../../res/threeDimen/sk...
来源: Laya_示例 发布时间: 20241123
...cene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onCo...
来源: Laya_示例 发布时间: 20241123
...相机 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_示例 发布时间: 20241123
...rrainSprite世界矩阵(为可行走区域世界矩阵) this.terrainSprite.transform.worldMatrix = meshSprite3D.transform.worldMatrix; //给terrainSprite添加PathFind组件 var pathFingding = this.terrainSprite.addComponent(Laya.PathFind); pathFingding.setting = { allowDiagonal: true, dontCrossCorn...
来源: Laya_示例 发布时间: 20241123
...中 方框指示的sprite3d的rotation,会导致子物体TargetGuard的transform.position不正确,好像子节点属于的坐标系变动了? 比如说,绳子不旋转的时候,我在代码中动下面圆盘的transform.positionthis.block = s.getChildByName("target_root").getChildByNam...
来源: Laya_社区 发布时间: 20171228