大约有 471 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0047 秒)
Laya_社区(148) Laya3.0_api(88) Laya2.0_api(75) laya_api(69) Laya2.0_文档(43) Laya_示例(37) Laya3.0_文档(9) Laya2.0_示例(2)
... 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, onComplete)); function onComplete() { var layaMonkey = scene.addChild(L...
来源: Laya_示例 发布时间: 20241125
...prite3D; box.transform.translate(new Laya.Vector3(5, 5, 5)); 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) { mater...
来源: Laya_社区 发布时间: 20200917
...r camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); //-30改为-90 camera.transform.translate(new Laya.Vector3(0, 0.5, 0)); //(0,0.5,500)改为(0, 0.5, 0) camera.orthographicProjection = true; var directionLight = scene.ad...
来源: Laya_社区 发布时间: 20170807
...; camera.transform.translate(new Laya.Vector3(0, 6, 10)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); var glitter = scene.addChild(new Laya.Glitter()); var glitterTemplet = glitter.templet; var glitterMaterial = glitter.glitterRender.sharedMaterial; glitterMaterial.diffuseText...
来源: Laya_示例 发布时间: 20241125
...); 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()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.di...
来源: Laya_示例 发布时间: 20241125
...r camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), false, false); camera.transform.translate(new Laya.Vector3(5, -10, 500)); camera.orthographic = true; //正交投影垂直矩阵尺寸 camera.orthographicVerticalSize = 10; var directionLig...
来源: Laya_示例 发布时间: 20241125
...Separate = new Vector3(1,1,1); s.threeDStartRotation = false; s.startRotationType = 0; s.startRotationConstant = 360.1826; s.startRotationConstantSeparate = new Vector3(0,0,360...
来源: Laya_社区 发布时间: 20170605
...g导致,具体见附件截图。在LayaRenders.js文件的Line269 sprite.rotation = (body.angle - sprite.initialAngle) * 180 / Math.PI; 这里因sprite.initialAngle为空导致rotation为空,进而导致后续计算的sprite变换矩阵异常。 修复办法: sprite.rotation = (body.angle -...
来源: Laya_社区 发布时间: 20180621
...amera.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 directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); dire...
来源: Laya_示例 发布时间: 20241125
...efault class indexscene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config3D = new Laya.Config3D(); config3D.isAlpha = true; ...
来源: Laya_社区 发布时间: 20200903