大约有 648 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0055 秒)
Laya_社区(363) Laya3.0_api(124) Laya2.0_文档(97) Laya_示例(42) Laya3.0_文档(13) laya_api(5) Laya2.0_api(4)
...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1.5)); camera.addComponent(CameraMoveScript); var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm"))); lay...
来源: Laya_示例 发布时间: 20241117
...dChild(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(0, -0.8, -1); directionLight....
来源: Laya_示例 发布时间: 20241117
...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.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.6, 0.6); directionLight....
来源: Laya_社区 发布时间: 20171127
...ya.Camera(0, 0.1, 1000))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(0, 0, 0), true, false); camera.clearColor = null; //添加自定义模型 var mesh = scene.addChild(new Laya.Sprite3D.load("res...
来源: Laya_社区 发布时间: 20170718
.../向量BA var CA;//向量CA var cosA;//角A余弦 var jA;//角A A=new Laya.Vector3(a1,a2,a3); B=new Laya.Vector3(b1,b2,b3); C=new Laya.Vector3(c1,c2,c3); BA=new Laya.Vector3(a1-b1,a2-b2,a3-b3); CA=new Laya.Vector3(a1-c1,a2-c2,a3-c3); cosA= ((a1-b1)*(a1-c1)+(a2-b2)*(a2-c2)+(a3-b3)*(a3-c3))/(Math.sqrt...
来源: Laya_社区 发布时间: 20191223
...t laya.d3.core.scene.Scene; import laya.d3.math.RandX; import laya.d3.math.Vector3; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BoxMesh; import laya.d3.resource.models.QuadMesh; import laya.d3.resource.models.SkyBox; import laya.display.Stag...
来源: Laya_社区 发布时间: 20170331
... = scene.addChild(new Camera()) as Camera; camera.transform.position = new Vector3(0, 3, 3); camera.transform.rotate(new Vector3( -45, 0, 0), true, false); camera.addComponent(CameraMoveScript); //生成平面,其实是一个box,只不过高度很小,可看成一个平面 var plane:MeshSprite3...
来源: Laya_社区 发布时间: 20161223
....Vector4(1, 255, 0, 1); var _corners = new Array(); _corners[0] = new Laya.Vector3(0,0,0); _corners[1] = new Laya.Vector3(0,0,100); _corners[2] = new Laya.Vector3(0,100,0); _corners[3] = new Laya.Vector3(0,0,100); phasorSpriter3D.begin(Laya.WebGLContext.LINES, camera); phasorSpriter3D.line(_co...
来源: Laya_社区 发布时间: 20180426
....Camera(0, 0.1, 100))) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.Dir...
来源: Laya_社区 发布时间: 20180808
...rimitiveMesh.createBox(0.5, 0.5, 0.5))); box.transform.position = new Laya.Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); //球体 var sphere = sprite3D.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(0.25, 20, 20))); sphere.transform.position...
来源: Laya2.0_文档 发布时间: 20210715