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

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

51. 动画混合问题,Avatar动画混合报错. [ 87%]

...RO; Laya.Vector3.normalize(dir,norDir); console.log(norDir); //this.sprite.transform.translate(norDir,false); // let position = Laya.Vector3.ZERO; // Laya.Vector3.add(this.sprite.transform.position,norDir,position) // this.sprite.transform.position = position; this.sprite.transform.localPositionX +=...

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

52. 官方案例里摄像机绕物体旋转脚本的问题 [ 87%]

...上OK,移动端没试,有问题调试着改一改就OK啦。。import Transform3D = Laya.Transform3D; import Vector3 = laya.d3.math.Vector3; import Quaternion = laya.d3.math.Quaternion; /* 用法: //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Ca...

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

53. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 87%]

...me = "camera";         //相机平移位置         camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5));         //旋转相机         camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);                      //创建平行光 ...

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

54. laya.d3.core.Transform3D [ 87%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames Transform3DProperties | Methods Packagelaya.d3.coreClasspublic class Transform3DInheritanceTransform3D EventDispatcher Object Transform3D 类用于实现3D变换。 Public Properties PropertyDefined By  localMatrix : Mat...

来源: Laya2.0_api 发布时间: 20190513

55. 求助 Uncaught SyntaxError: Unexpected identifier [ 87%]

...化照相机 var camera = 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,只不过高度很小,可看成一个平...

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

56. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 86%]

...节点的关联关系,使变换操作更灵活,每个精灵都有一个Transform3D。 (图2-9) 我们也可以在编辑器里手动调整精灵的变换 (图2-10) (图2-11) 图2-10用来调整精灵的旋转,图2-11用来调整精灵的缩放 (图2-12) 图2-12可同时用来调...

来源: Laya3.0_文档 发布时间: 20240624

57. 苹果笔记本下Safari中显示一半 [ 86%]

...on: absolute; left: 0px; top: 110px; background-color: rgb(255, 237, 118); transform-origin: 0px 0px 0px; transform: matrix(0.5, 0, 0, 0.5, 311, 0);"></canvas> 其他电脑上: <canvas id="layaCanvas" width="760" height="650" style="position: absolute; left: 0px; top: 110px; background...

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

58. position -position应该怎么写?? [ 86%]

...Loop() { cameraPos = camera.position; viewDir = camera.position - lineMesh.transform.position; console.log(viewDir); lineMesh.transform.lookAt(new Laya.Vector3(3, 3, 3), viewDir, true); } 2017-06-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

59. 3D变换 · LayaAir3.0文档 · LAYABOX [ 86%]

...也是三维图形世界的基础。LayaAir中实现三维变换用到了Transform3D这个类,包含了平移变换、旋转变换、缩放变换等。 本节以一个立方体模型演示这些变换。在LayaAir IDE中创建一个“3D空项目”,打开项目后,IDE已经默认创建了一...

来源: Laya3.0_文档 发布时间: 20230821

60. 3D灯光阴影无效 [ 86%]

..., 0.9); directionLight.diffuseColor = new Vector3(1, 1, 1); directionLight.transform.position = new Vector3(0, 30, 0);  //这一行不管有没有,都一样没有效果 directionLight.direction = new Vector3(0, -1.0, -1.0); directionLight.shadow = true; var QiPanMesh:MeshSprite3D = new MeshSprite...

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