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

大约有 237 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)

81. LayaAir3D中的Transform变换(ActionScript-3D基础(AS3)-LayaAir3D图形系统基础概念) [ 80%]

# LayaAir3D中的Transform变换 ​ 在前面讲过了LayaAir3D中的坐标系和几个基础数学工具,在示例代码中,transform是一个变换对象([Transform3D](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.core.Transform3D)API),他在3D的...

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

82. 动画-旧版骨骼动画 [ 79%]

...ene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 1.5, 3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(...

来源: Laya_示例 发布时间: 20251130

83. 获取相机renderTexture 作为阴影 的UV [ 79%]

...设置u_ShadowMapTex     onUpdate(){         this.ShadowCamera.transform.lookAt(new Vector3(0,0,0), new Vector3(0,1,0), false);         let v:Matrix4x4 = this.ShadowCamera.viewMatrix;         let p:Matrix4x4 = this.ShadowCamera.projectionMatrix;         ...

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

84. 多点触控的使用(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 79%]

....y = this.touch.position.y; //根据移动的距离进行旋转 this.owner.transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ this._text.text = "触控点为2"; this.isTwoTouch = true; //获取两个触碰点 var touch = this._scene.inp...

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

85. 多点触控的使用(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 79%]

....y = this.touch.position.y; //根据移动的距离进行旋转 this.owner.transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ this._text.text = "触控点为2"; this.isTwoTouch = true; //获取两个触碰点 var touch = this._scene.inp...

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

86. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 78%]

... { this.camera = this.owner as Laya.Camera; if (this.target) { this.target.transform.position.cloneTo(this.curpos); this.delatpos = new Laya.Vector3(); } } /** * 每帧更新时执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 * 此方法为虚方法,使用时重写覆...

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

87. 请问怎么把多个模型合并在一个组里面 [ 78%]

...= scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 0.1, 1))); box0.transform.position=new Laya.Vector3(1,0,0); var box1= scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 0.1, 1))); box1.transform.position=new Laya.Vector3(-1,0,0); 建立了2快板,显示如下:  我建了box0和...

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

88. layabox 只支持一个灯光? [ 78%]

...ht; this.loadCCDlight.color = new Laya.Vector3(1, 1, 1); this.loadCCDlight.transform.position = new Laya.Vector3(-1, 1.2, 0.0); this.loadCCDlight.direction = new Laya.Vector3(0.15, -1.0, 0.0); this.loadCCDlight.attenuation = new Laya.Vector3(0.0, 0.0, 0.8); this.loadCCDlight.range = 6.0; this.loadCC...

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

89. laya.d3.renderobjs.nativeobj.NativeTransform3D_API3.0 [ 77%]

...d Externals Only exported Menu Globals "laya/d3/RenderObjs/NativeOBJ/NativeTransform3D" NativeTransform3D Class NativeTransform3D Transform3D 类用于实现3D变换。 Hierarchy Transform3D NativeTransform3D Index Constructors constructor Properties _nativeObj MemoryBlock_size tmpVec3 Accessors loc...

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

90. SpotLight介绍(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 77%]

...Light.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = spotLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(0.15, -1.0, 0.0)); spotLight.transform.worldMatrix = mat; //设置聚光...

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