• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 333 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0041 秒)

121. 使用2D地图3D人物混合进行游戏开发(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 74%]

...is._layaMonkey = layaMonkey; //设置缩放 var tmpLocalScale = layaMonkey.transform.localScale; tmpLocalScale.setValue(0.3, 0.3, 0.3); layaMonkey.transform.localScale = tmpLocalScale; /*添加部分*/ _pos.x = Laya.stage.mouseX; _pos.y = Laya.stage.mouseY; //转换2D屏幕坐标系统到3D正交投...

来源: Laya2.0_文档 发布时间: 20210715

122. 像素线 · LayaAir3.0文档 · LAYABOX [ 74%]

...+ 1]]; var vertex2: Laya.Vector3 = positions[indices[i + 2]]; Laya.Vector3.transformCoordinate(vertex0, sprite3D.transform.worldMatrix, this.transVertex0); Laya.Vector3.transformCoordinate(vertex1, sprite3D.transform.worldMatrix, this.transVertex1); Laya.Vector3.transformCoordinate(vertex2, sprite3D...

来源: Laya3.0_文档 发布时间: 20240624

123. 动画-旧版骨骼动画 [ 73%]

...ene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 1.5, 3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(...

来源: Laya_示例 发布时间: 20241001

124. 动态阴影被切割了?为啥没有显示完成的阴影 [ 73%]

... var instance = new Laya.MeshSprite3D(new Laya.BoxMesh(x, y, z)); instance.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); instance.transform.position = new Laya.Vector3(posX, posY, posZ); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load(textureUrl...

来源: Laya_社区 发布时间: 20180402

125. 如何将Tween缓动应用与3D物体 [ 73%]

... 2019-02-14 0 1 分享 微博 QZONE 微信 soren 赞同来自: clownFish.transform.lookAt(new Laya.Vector3(1.3288445472717285,0.9997662901878357,-3.575782537460327), new Laya.Vector3(0,0,0)); Laya.Tween.to(clownFish.transform.position, { x: 1.3288445472717285, y: 0.9997662901878357, z: -3.5757825374...

来源: Laya_社区 发布时间: 20190213

126. 使用2D地图3D人物混合进行游戏开发(ActionScript-3D基础(AS3)-LayaAir3D之高级应用) [ 73%]

...Monkey = layaMonkey; //设置缩放 var tmpLocalScale:Vector3 = layaMonkey.transform.localScale; tmpLocalScale.setValue(0.3, 0.3, 0.3); layaMonkey.transform.localScale = tmpLocalScale; /*添加部分*/ _pos.x = Laya.stage.mouseX; _pos.y = Laya.stage.mouseY; //转换2D屏幕坐标系统到3D正交投...

来源: Laya2.0_文档 发布时间: 20210715

127. 如何使用3D场景2D人物进行混合开发(JavaScript-3D基础(JS)-LayaAir3D之高级应用) [ 73%]

... = Math.cos(this.scaleDelta += 0.01) * 2; //修改球的位置 this.sphere.transform.position = this._position; //计算位置 this._camera.viewport.project(this._position, this._camera.projectionViewMatrix, this._outPos); this._layaMonkey2D.pos(this._outPos.x / Laya.stage.clientScaleX, this._outPos...

来源: Laya2.0_文档 发布时间: 20210714

128. 如何使用3D场景2D人物进行混合开发(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 73%]

... = Math.cos(this.scaleDelta += 0.01) * 2; //修改球的位置 this.sphere.transform.position = this._position; //计算位置 this._camera.viewport.project(this._position, this._camera.projectionViewMatrix, this._outPos); this._layaMonkey2D.pos(this._outPos.x / Laya.stage.clientScaleX, this._outPos...

来源: Laya2.0_文档 发布时间: 20210715

129. 请问怎么把多个模型合并在一个组里面 [ 73%]

...= scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 0.1, 1))); box0.transform.position=new Laya.Vector3(1,0,0); var box1= scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 0.1, 1))); box1.transform.position=new Laya.Vector3(-1,0,0); 建立了2快板,显示如下:  我建了box0和...

来源: Laya_社区 发布时间: 20181214

130. SpotLight介绍(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 73%]

...Light.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = spotLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(0.15, -1.0, 0.0)); spotLight.transform.worldMatrix = mat; //设置聚光...

来源: Laya2.0_文档 发布时间: 20210715