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

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

61. Camera.viewportToRay中origin与direction相等问题 [ 67%]

...._ray)之后加一行: this._ray.origin = GameManager.instance.mainCamera.transform.position即可完美执行射线碰撞检测.     附件 : --> 2019-03-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_...

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

62. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 66%]

... camera:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.translate(new Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; direct...

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

63. 请问Laya如何使用第三方物理库 [ 66%]

...tic map: { [key: number]: Laya.Sprite3D } = {}; body: CANNON.Body; t: Laya.Transform3D; public onCollisionCB: (s: Laya.Sprite3D) => void; public ignoreRotate: boolean = false; ...OnAwake里面创建CANNON.Body, OnEnable里面把CANNON.Body加入到CANNON.World, OnDisable则移除, onUpdate里面...

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

64. laya.d3.renderobjs.nativeobj.NativeRenderOBJCreateUtil_API3.0 [ 65%]

...Instance createShadowCullInfo createSkinRenderElement createSortPass createTransform createUniformBufferObject createVertexBuffer3D Methods createBaseRenderNode createBaseRenderNode(): IBaseRenderNode Implementation of IRenderOBJCreate.createBaseRenderNode Defined in laya/d3/RenderObjs/NativeOBJ/Nat...

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

65. laya.d3.renderobjs.renderobj.RenderOBJCreateUtil_API3.0 [ 65%]

...Instance createShadowCullInfo createSkinRenderElement createSortPass createTransform createUniformBufferObject createVertexBuffer3D Methods createBaseRenderNode createBaseRenderNode(): IBaseRenderNode Implementation of IRenderOBJCreate.createBaseRenderNode Defined in laya/d3/RenderObjs/RenderObj/Ren...

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

66. rigidBody.applyForce 物体不会移动 [ 65%]

...ildByName( "Monster1" ) as Laya.Sprite3D; scene.addChild(Monster); Monster.transform.translate( new Laya.Vector3(monster_position_x, 0, monster_position_z) ); this.monster_character = Monster; // this.master_turn(); //添加自定义模型 var box: Laya.MeshSprite3D = this.scene.addChild( new Laya.M...

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

67. 3D中摄像机绕物体旋转该如何实现? [ 62%]

...上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_社区 发布时间: 20170714

68. 多点触控的使用(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 61%]

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

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

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

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

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

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