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

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

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

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

142. 如何获得box单独每个面的material [ 67%]

...xHeight); var box = this.parent.addChild(new Laya.MeshSprite3D(mesh)); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.position = new Laya.Vector3(ConstValue.boxOutScreen,ConstValue.boxHeight/2,0); var material = new Laya.StandardMaterial(); material.albedo = new Laya.V...

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

143. 修改localRotationEuler的问题 [ 67%]

...行赋值操作,代码如下。// 刷新下数值 var temp = this.model.transform.localRotationEuler; // 再进行修改 this.model.transform.localRotationEulerY = 90;方案二:在laya.d3.js中,在set localRotationEulerX、set localRotationEulerY、set localRotationEulerZ等属性方法内进...

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

144. 怎么实时获取相机的xyz [ 67%]

...来自: var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(5, -10, 500)); 2017-12-18 0 1 分享 微博 QZONE 微信 wudi199553 赞同来自: https://ask.layabox.com/question/7565 2017-12-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个...

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

145. pivot 设置后 影响 元素大小??????????????? [ 67%]

...0,_core.height); tf.translate(_core.p1.x,_core.p1.y-_core.height); page[1].transform=tf; 我全用transform了, 达到了想要的效果 cuixueying • 2016-12-14 14:14 好的,有问题及时沟通!

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

146. laya.d3.animation.AnimationTransform3D [ 67%]

...tationAll Packages | All Classes | Index | Frames No Frames AnimationTransform3DProperties | Methods Packagelaya.d3.animationClasspublic class AnimationTransform3DInheritanceAnimationTransform3D EventDispatcher Object AnimationTransform3D 类用于实现3D变换。 Public Properties Propert...

来源: Laya2.0_api 发布时间: 20190513

147. sprite之bug [ 67%]

...; conchModel.scale(value, style._tf.scaleY);  _renderType |= RenderSprite.TRANSFORM;  var p:Sprite = _parent as Sprite;  if (p && p._repaint === 0) {  p._repaint = 1;  p.parentRepaint();  }  }  }       public function set scaleY(value:Number):void {  var style:Style = getStyle();...

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

148. LayaAir如何动态的获取运动状态sprite的位置 [ 67%]

... 已邀请: 与内容相关的链接 提交 1 个回复 hj 赞同来自: transform.position 2018-10-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 魂 相关问题 微信关系链:LayaAir引擎针对微信小游戏好友关系链实...

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

149. 物体随着鼠标滑动旋转脚本 [ 67%]

...[0], yprElem[1], yprElem[2], this.tempRotationZ);         this.Obj.transform.localRotation = this.tempRotationZ;     } } //鼠标按下Object随着鼠标滑动得出相应的坐标值 ObjectRotate.prototype.mouseDown = function (e) {     this.Obj.transform.localRotation.getYawPitchRo...

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

150. 把摄像机添加到一个物体上,然后绕着这个物体旋转 [ 67%]

...Laya.stage上的键盘事件即可实现 放大缩小通过设置sprite3d.transform的scale值即可实现 2018-04-10 1 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ssmc 相关问题 两个对象new了一个相同的对象,调用第一...

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