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

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

201. 怎么让模型原地依照Y轴旋转到 我指定的角度? 角度 如何 转换成 Y轴旋转 的四元数? [ 82%]

...。使用这个方法就可以直接把第二个问题绕开了。 var t:Transform3D; t.localRotationEuler = new Vector3(0, 45, 0); 不过在这里还是贴一下使用代码: var q:Quaternion = new Quaternion(); Quaternion.createFromYawPitchRoll(45,0,0,q);   2017-09-19 1 0 分享 微博 QZONE 微...

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

202. 3D阴影无法渲染出来 [ 82%]

...机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 1000))); 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()); dire...

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

203. IDE创建3D示例项目(ActionScript-3D基础(AS3)-快速开始一个LayaAir3D项目) [ 82%]

...amera:Camera = (scene.addChild(new Camera(0, 0.1, 100))) as Camera; camera.transform.translate(new Vector3(0, 3, 3)); camera.transform.rotate(new Vector3(-30, 0, 0), true, false); //添加方向光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionL...

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

204. 组件属性的代码使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 82%]

...0, 0.01, 0); onStart() { Laya.timer.frameLoop(1, this, ()=> { this.cube.transform.rotate(this.rotation, false); }); } } 效果如动图1-4所示: (动图1-4) 1.3 3D节点的进阶使用 @property( { type :Laya.Sprite3D } ) //节点类型 public p3d: Laya.Sprite3D; onAwake(): void { this.p3d...

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

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

...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

206. 照相机-多照相机 [ 82%]

... 100)); camera1.clearColor = new Laya.Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new Laya.Vector3(0, 0, 1.5)); camera1.normalizedViewport = new Laya.Viewport(0, 0, 0.5, 1.0); var camera2 = scene.addChild(new Laya.Camera( 0, 0.1, 100)); camera2.clearColor = new Laya.Vector4(0.0, 0.0, 1....

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

207. 3D模型tween旋转 [ 82%]

3D模型tween旋转 Laya.Tween.to(sss.transform,{rotationEuler:new Laya.Vector3(0,0,0)},2000); sss是MeshSprite3D的节点,从unity导入laya的模型 运行上述代码后,模型不旋转。 使用sss.transform.rotationEuler=new Laya.Vector3(0,0,0),赋值有效   想问下,是我这个...

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

208. Sprite3D-Sprite3D克隆 [ 82%]

...cene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onCo...

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

209. 下面这段unity碰撞代码如何用laya2.0物理引擎实现 [ 82%]

...at newImpulsePercent, float impulseForce) {     Vector3 a = base.transform.position - collision.gameObject.transform.position;     float num = -(newImpulsePercent * impulseForce / 100f);     num = Mathf.Clamp(num, -impulseForce, impulseForce);     a.Normalize();  ...

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

210. 关于矩阵的疑问 [ 82%]

...,方法是设置 Matrix 对象的属性,将该 Matrix 对象应用于 Transform 对象的 matrix 属性,然后应用该 Transform 对象作为显示对象的 transform 属性。这些转换函数包括平移(x 和 y 重新定位)、旋转、缩放和倾斜。</p> 2018-06-06 0 0 分...

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