大约有 720 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0054 秒)
Laya_社区(328) Laya3.0_api(99) Laya2.0_api(82) laya_api(76) Laya2.0_文档(63) Laya_示例(46) Laya3.0_文档(14) Laya2.0_示例(12)
...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 pointLight = scene.addChild(new Laya.PointLight()); pointLight.color = new Laya.Vector3(0.1189446, 0.5907708, 0.7352941)...
来源: Laya_示例 发布时间: 20241118
...amera; camera.transform.translate(new Vector3(0, 10, 0)); camera.transform.rotate(new Vector3(-30, 0, 0), true, false); //添加地板 var floor:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 2000, 100, 100))) as MeshSprite3D; //给地板添加物理组件 var floorC...
来源: Laya_社区 发布时间: 20190417
...); camera.transform.translate(new Laya.Vector3(0, 5, 0)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.8, 0.8, 0.8); directionLi...
来源: Laya_社区 发布时间: 20180717
...3.subtract(transform.position,sphere3D.transform.position,dir); Quaternion.rotationLookAt(dir,Vector3.Up,out); Quaternion.slerp(transform.rotation,out, Laya.timer.delta/1000,out1); transform.rotation = out1; transform.translate(v3) 附件中是unity的效果 2018-07-26 添加评论 已悬赏5...
来源: Laya_社区 发布时间: 20180726
...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
...](./img/GameObject.png) - name - Static - Layer - Transform 1. Position 2. Rotation 3. Scale - Component - Camera ![Camera](./img/components/InspectorCamera35.png) 1. Clear Flags - Skybox - Solid Color - Depth only - Don't Clear 2. Background 3. Projection - perspective - Field of View - Orthographi...
来源: Laya2.0_文档 发布时间: 20200822
...); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); let directionLight = new Laya.DirectionLight(); scene.addChild(directionLight); let mat = directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(1.0, -1.0, -1...
来源: Laya_社区 发布时间: 20200915
...阵(原则为upper-left,忽略第四行四列) Matrix3x3 createFromRotation(rad:Number, out:Matrix3x3):void[static] 根据指定旋转生成3x3矩阵 Matrix3x3 createFromScaling(scale:Vector2, out:Matrix3x3):void[static] 根据制定缩放生成3x3矩阵 Matrix3x3 createFromTranslation(...
来源: laya_api 发布时间: 20170929
...阵(原则为upper-left,忽略第四行四列) Matrix3x3 createFromRotation(rad:Number, out:Matrix3x3):void[static] 根据指定旋转生成3x3矩阵 Matrix3x3 createFromScaling(scale:Vector2, out:Matrix3x3):void[static] 根据制定缩放生成3x3矩阵 Matrix3x3 createFromTranslation(...
来源: Laya2.0_api 发布时间: 20190513
...(1280,720,Laya.WebGL);//有问题 console.log(Laya.version); var testSpriteRotation:PanelRotationTest = new PanelRotationTest(Laya.Sprite); testSpriteRotation.pos(300,260); Laya.stage.addChild(testSpriteRotation); var testPanelRotation:PanelRotationTest = new PanelRotationTest(Laya.Panel); testPanel...
来源: Laya_社区 发布时间: 20170814