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

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

51. 动态阴影被切割了?为啥没有显示完成的阴影 [ 82%]

... var instance = new Laya.MeshSprite3D(new Laya.BoxMesh(x, y, z)); instance.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); instance.transform.position = new Laya.Vector3(posX, posY, posZ); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load(textureUrl...

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

52. 关于射线碰撞的问题,对于射线的罗辑方式不太了解,懂得进来帮忙看一下!~~~~~~~~~~ [ 81%]

...物位置,_position是缓动函数实时更新的坐标     roleModel.transform.position = _position;     //设置射线原点     ray2.origin=new Vector3(roleModel.transform.position.x, roleModel.transform.position.y+10, roleModel.transform.position.z);    //物理射线与碰撞器相交...

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

53. 评论功能没用的吗? [ 81%]

...nce(Laya.Event.HIERARCHY_LOADED, null, function (sprite) {       sprite.transform.position = new Laya.Vector3(0,0,-100); }); 在游戏中 调整模型的位置需要在场景加载完后进行操作! 2017-03-16 1 2 分享 微博 QZONE 微信 cuixueying 赞同来自: 如果长时间无人回...

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

54. 目标纹理的使用(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 80%]

...era: Camera = scene.addChild(new Camera(0, 0.3, 1000)); 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); //渲染...

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

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

...a = scene.addChild(new Camera(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); //渲染...

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

56. 目标纹理的使用(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 80%]

...argetCamera = scene.addChild(new Camera(0, 0.3, 1000)); 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); //渲染...

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

57. 新手的伤,ReferenceError: CameraMoveScript is not defined [ 79%]

...; //加载到场景 scene.addChild(camera); //移动摄像机位置 camera.transform.position = new Laya.Vector3(0, 5, 23); //旋转摄像机角度 camera.transform.rotate(new Laya.Vector3(-17, 0, 0), true, false); //设置摄像机视野范围(角度) camera.fieldOfView = 35; //设置背景颜...

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

58. 人物渲染衣服会部分消失 [ 79%]

...载到场景 this.scene.addChild(camera); //移动摄像机位置 camera.transform.position = new Laya.Vector3(-3, 1.5, 6); //旋转摄像机角度 camera.transform.rotate(new Laya.Vector3(-6, 0, 0), true, false); //设置摄像机视野范围(角度) camera.fieldOfView = 33;   附件 : --> 201...

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

59. [BUG]刚体约束问题,移动后约束混乱! [ 79%]

...addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera;     camera.transform.translate(new Laya.Vector3(0, 3, 30));          //方向光     const directionLight =this.newScene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight;     directionLight.color = ne...

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

60. 正交相机要怎么控制啊,坐标什么的全部懵!看了这个官方示例表示不懂,为什么还要转化为2D坐标? [ 79%]

...ene()); var 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 ...

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