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

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

491. 目标纹理的使用(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 70%]

...mera(0, 0.3, 1000)) as Camera; renderTargetCamera.transform.position = new Vector3(-28.8, 8, -60); renderTargetCamera.transform.rotate(new Vector3(0, 180, 0), true, false); //选择渲染目标为纹理 renderTargetCamera.renderTarget = new RenderTexture(512, 512); //渲染顺序 renderTargetCamera....

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

492. 如何从摄像机创建一条射线(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 70%]

...nt:Vector2 = new Vector2(); //创建一个射线 var ray: Ray= new Ray(new Vector3(0, 0, 0), new Vector3(0, 0, 0)); //以鼠标点击的点作为原点 point.x = Laya.stage.mouseX; point.y = Laya.stage.mouseY; //计算一个从屏幕空间生成的射线 camera.viewportPointToRay(point, ray); ``` ...

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

493. laya.d3.core.pixelline.PixelLineMaterial_API3.0 [ 70%]

...PropertyValue getTexture getTextureByIndex getVector2 getVector2ByIndex getVector3 getVector3ByIndex getVector4 getVector4ByIndex hasDefine hasListener isCreateFromURL off offAll offAllCaller oldparseEndEvent on once removeDefine setBool setBoolByIndex setBuffer setBufferByIndex setColor setColorByI...

来源: Laya3.0_api 发布时间: 20231115

494. 加载学堂3D角色资源,播放动画异常 [ 70%]

...oad("man/hero-mon_1129.lm")); this.roleMan.transform.localScale = new Laya.Vector3(0.01,0.01,0.01); this.roleMan.transform.localPosition = new Laya.Vector3(0,-0.5,-3); this.scene.addChild(this.roleMan); //给男角色添加贴图动画 var manAni:Laya.SkinAnimations = this.roleMan.addComponent(Laya....

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

495. 摄像机背景与天空盒设置 [ 70%]

...背景与天空盒设置 //设置背景颜色 camera.clearColor = new Laya.Vector3(0.5,0.5,0.6); 天空盒 //创建天空盒 var skyBox:Laya.SkyBox = new Laya.SkyBox(); //清除标记,使用天空(必须设置,否则无法显示天空) camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //绑...

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

496. 数学库中的Vector2上缺少很多函数 [ 70%]

...一套 2018-02-09 0 0 分享 微博 QZONE 微信 watsonsong 赞同来自: Vector3里面有的求长度scaleLength或者点乘dot这种最基本的,Vector2里面都没有。 而不是一些不常用的公式。 既然Vector3里面都有提供,Vector2对应的不是也应该有么 2018-02-09 0 1 ...

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

497. 物体碰撞问题 [ 69%]

...ateBox(1, 1, 1))) as Laya.MeshSprite3D; box_1.transform.translate(new Laya.Vector3(0, 5, 0)); var boxRigidBody_1 : Laya.Rigidbody3D = box_1.addComponent(Laya.Rigidbody3D); var boxShape_1 : Laya.BoxColliderShape = new Laya.BoxColliderShape(1, 1, 1); boxRigidBody_1.colliderShape = boxShape_1; boxRigid...

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

498. unity 导出模型 [ 69%]

...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.0)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; camera.addComponent(CameraMoveScript); var map=Laya.Sprite3D.load("H5/Main.lh"); scene.addChild(map);   2017...

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

499. 2.8.0上默认模型不能产生和接受阴影 [ 69%]

....DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 0)); directionLight.shadowMode = Laya.ShadowMode.SoftLow; directionLight.shadowDistance = 100; directionLight.shadowNearPlane = 1...

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

500. 摄像机捕捉目标(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 69%]

...点击按钮切换注视目标。 ```typescript //up向量 private var _up:Vector3 = new Vector3(0, 1, 0); ``` ```typescript //点击事件 changeActionButton.on(Event.CLICK, this, function():void{ index++; if (index % 3 === 1 ){ //摄像机捕捉模型目标 camera.transform.lookAt(box.transform.po...

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