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

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

131. 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

132. SpotLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 73%]

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

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

133. 如何使用3D场景2D人物进行混合开发(ActionScript-3D基础(AS3)-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

134. SpotLight介绍(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 73%]

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

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

135. SphereCollider和MeshCollider碰撞检测的bug [ 72%]

...ontainmentType.Contains*/1) // return true // } var worldMat = other.owner.transform.worldMatrix; var vec = new Vector3(); for (var i = 0, iLen = positions.length; i < iLen; i++) { Vector3.transformCoordinate(positions[i], worldMat, vec); if (Collision.sphereContainsPoint(this.boundSphere, vec)==...

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

136. 摄像机lookAt如何围绕一个模型做Tween动画? [ 72%]

... var y = 1; Laya.timer.frameLoop(30, this, function () { y = y + 1; camera.transform.lookAt(model.transform.position, new Laya.Vector3(0, 1, 0), false); camera.transform.rotate(new Laya.Vector3(0, y, 3), false, false); }); 我想让摄像机围绕一个模型旋转做动画,用Tween没有起到作...

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

137. AS引用AS项目打包出来的JS不能用 [ 72%]

...yle="position: absolute; left: 0px; top: 0px; background: rgb(35, 38, 40); transform-origin: 0px 0px 0px; transform: matrix(0.333333, 0, 0, 0.333333, 0, 0);"></canvas><div style="position: absolute; z-index: 100000;"></div><div style="z-index: 10000000; padding: 0px; position...

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

138. Laya.Quaternion.rotationLookAt 怀疑存在BUG [ 72%]

...本 RoundCamera_Laya(zhujue: Laya.Vector3, enimy: Laya.Vector3, ca: Laya.Transform3D) {      var enimyPos = enimy;     enimyPos.y = 0;      var cameraPos = ca.position;     cameraPos.y = 0;      var enimy2cameradir = JieTools.subVec3(enimyPos, cameraPos);       Laya.Vector3.nor...

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

139. 怎么设置3D相机,模型的绝对值 [ 72%]

怎么设置3D相机,模型的绝对值 this.camera.transform.position = new Laya.Vector3(0, 10, 40); this.camera.transform.translate(new Laya.Vector3(0, 10, 40)); this.camera.transform.rotate(new Laya.Vector3(0, 10, 0), true, false); 做一个按钮,专门切换到90度的视图上,怎么设置相...

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

140. layabox 只支持一个灯光? [ 72%]

...ht; this.loadCCDlight.color = new Laya.Vector3(1, 1, 1); this.loadCCDlight.transform.position = new Laya.Vector3(-1, 1.2, 0.0); this.loadCCDlight.direction = new Laya.Vector3(0.15, -1.0, 0.0); this.loadCCDlight.attenuation = new Laya.Vector3(0.0, 0.0, 0.8); this.loadCCDlight.range = 6.0; this.loadCC...

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