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

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

111. 如何将Tween缓动应用与3D物体 [ 75%]

... 2019-02-14 0 1 分享 微博 QZONE 微信 soren 赞同来自: clownFish.transform.lookAt(new Laya.Vector3(1.3288445472717285,0.9997662901878357,-3.575782537460327), new Laya.Vector3(0,0,0)); Laya.Tween.to(clownFish.transform.position, { x: 1.3288445472717285, y: 0.9997662901878357, z: -3.5757825374...

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

112. PixelLineSprite3D 绘制线段问题 [ 74%]

...存在一个目标OBJ, 首先获得目标的坐标this.objPoint3D= OBJ.transform.position2. 从摄像机(透视)构造一条射线(参考官方3D鼠标点击案例),来得到一个鼠标点击坐标this.originRay = new Laya.Ray(this.sceneCamera.transform.position, new Laya.Vector3(0, 0, ...

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

113. 对象池3D问题 [ 74%]

...oad("fish/denglongyu/layaScene.lh"); scene.addChild(layaMonkey) layaMonkey.transform.localScale = new Laya.Vector3(0.04,0.04,0.04); layaMonkey.transform.position = new Laya.Vector3(0, 0.5,0); // layaMonkey.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)) //漫反射贴图 var tietu=layaMonkey.getC...

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

114. camera.addComponent(CameraMoveScript)报错 [ 74%]

...// 加载到场景 scene.addChild(camera); // 移动摄像机位置 camera.transform.position = new Laya.Vector3(0, 5, 23); // 旋转摄像机角度 camera.transform.rotate(new Laya.Vector3(-17, 0, 0), false); // 设置摄像机视野范围(角度) camera.fieldOfView = 50; // 设置背景颜色 ...

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

115. tween如何更改3d物体位置 [ 74%]

...接 提交 1 个回复 zszen 赞同来自: 我自己来  box.potOld = box.transform.position;Laya.Tween.to(box.potOld,{     x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,La...

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

116. Laya截图3D场景相关模型,导致模型透视! [ 74%]

...cene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.position = new Laya.Vector3(0, 0, 10); camera.transform.rotate(new Laya.Vector3(0, 180, 0), true, false); camera.orthographic = true; camera.orthographicVerticalSize = 5; this.effRes = Laya.Sprite3D.load(resUrl); th...

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

117. laya.d3.core.Transform3D_API3.0 [ 74%]

...Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/Transform3D" Transform3D Class Transform3D Transform3D 类用于实现3D变换。 Hierarchy EventDispatcher Transform3D NativeTransform3D Index Properties tmpVec3 Accessors localMatrix localPosition localPositionX localPositi...

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

118. LookAt又出bug了,官方赶紧看看是不是代码合漏了 [ 73%]

...里面预览,控制台输入Laya.stage.getChildAt(0).getChildByName("A").transform.lookAt(Laya.stage.getChildAt(0).getChildByName("B").transform.position,new Laya.Vector3(0,1,0),false,false)  指向错误   下面两句修正方向 Laya.stage.getChildAt(0).getChildByName("A").transform.rotation....

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

119. 3D模式下使用Tween使模型移动如何写法 [ 73%]

...englongyu/denglongyu1.jpg"); fish.meshRender.material = fishmaterial; fish.transform.localScale = new Laya.Vector3(0.001,0.001,0.001); fish.transform.localPosition = new Laya.Vector3(0,1,0); fish.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)); //移动鱼 Laya.Tween.to(fish,{x:-1},3000,Laya.Ease...

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

120. 新手的伤,ReferenceError: CameraMoveScript is not defined [ 73%]

...; //加载到场景 scene.addChild(camera); //移动摄像机位置 camera.transform.position = new Laya.Vector3(0, 5, 23); //旋转摄像机角度 camera.transform.rotate(new Laya.Vector3(-17, 0, 0), true, false); //设置摄像机视野范围(角度) camera.fieldOfView = 35; //设置背景颜...

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