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

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

591. 修改坐标后,实际效果不改变 [ 63%]

...回调中进行位置和大小改变 this.lz.transform.position = new Laya.Vector3(1000, 1000, 1000); this.lz.transform.localScale = new Laya.Vector3(3, 3, 3); 并且确实改变了对应的值。但是渲染的效果并没有变化 附件 : --> LayaScene_Effect.rar effect.rar WebGame.rar 2018-03-27...

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

592. 给带有rigitbody3d 组件的物品applyforce后,物体成功运动了,要怎么获得其速度,我取linearVelocity 但是值好像都是不对的.. [ 63%]

...13 • 2020-03-30 17:01 同问,偏差的非常大 let vectory = new Laya.Vector3(30,0,0); this.rigidbody.linearVelocity = vectory; console.log(this.rigidbody.linearVelocity); 获取得到的值确是 Vector3 {x: -0.20082436501979828, y: 0, z: 0.20082436501979828} z轴分量应该位0才对,就...

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

593. Unity导出报错KeyNotFoundException: The given key was not present in the dictionary. [ 62%]

...a (UnityEngine.GameObject gameObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath) LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolea...

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

594. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 62%]

........... if (e.keyCode == 97) { // console.log("a"); let newPos = new Laya.Vector3(this.block.transform.position.x + 0.1, this.block.transform.position.y, this.block.transform.position.z); console.log(newPos.x); this.block.transform.position = newPos; } else if (e.keyCode == 100) { // console.log('d...

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

595. 多摄像机窗口的使用(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 62%]

...arColor = new Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new Vector3(0, 0, 1.5)); //设置裁剪空间的视口 camera1.normalizedViewport = new Viewport(0, 0, 0.5, 1.0); //创建相机2 var camera2:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera2.clearColor = new Ve...

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

596. Unity2.10.0beta插件报错 [ 62%]

...600df769>:0) o.a (UnityEngine.GameObject A_0, c A_1, c A_2, UnityEngine.Vector3 A_3, UnityEngine.Quaternion A_4, UnityEngine.Vector3 A_5, System.String& A_6) (at <174bbe38e5444724b5b9eeb4600df769>:0) o.a (UnityEngine.GameObject A_0, System.String A_1, c A_2, System.Boolean A_3, System.B...

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

597. laya.d3.core.light.DirectionLightCom_API3.0 [ 62%]

...number Returns void shadowFourCascadeSplits get shadowFourCascadeSplits(): Vector3 set shadowFourCascadeSplits(value: Vector3): void Defined in laya/d3/core/light/DirectionLightCom.ts:45 四级级联阴影分割比例,X、Y、Z依次为其分割比例,Z必须大于Y,Y必须大于X。 Returns Vector3...

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

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

...; //根据移动的距离进行旋转 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.input.getTouch(0); var touch2...

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

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

...; //根据移动的距离进行旋转 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.input.getTouch(0); var touch2...

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

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

...第二个问题绕开了。 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 微信 avpvsdoom 赞同来自: box.transfor...

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