大约有 731 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
Laya_社区(333) Laya3.0_api(99) Laya2.0_api(82) laya_api(76) Laya2.0_文档(63) Laya_示例(46) Laya3.0_文档(20) Laya2.0_示例(12)
...[0].stageY - touches[1].stageY, touches[0].stageX - touches[1].stageX); sp.rotation += 180 / Math.PI * (nowRadian - preRadian); preRadian = nowRadian; } } function onMouseUp(e) { Laya.stage.off(Event.MOUSE_MOVE, this, onMouseMove); } })();module laya { import Sprite = Laya.Sprite; import Stage = Lay...
来源: Laya_示例 发布时间: 20251130
...任何改变外观的属性都将导致图形重绘: ```typescript var rotation=0, scale=1, position=0; private function setRotation(value):void { this.rotation=value; update(); } private function setScale(value):void { this.scale = value; update(); } private function setPosition(value):void { thi...
来源: Laya2.0_文档 发布时间: 20210714
...来有卡顿,不知道怎么回事? 代码如下: TimeLine.to(btn2, {rotation:5}, 1500).to(btn2, {rotation:0}, 1500).to(btn2, {rotation:-5}, 1500).to(btn2, {rotation:0}, 1500).play(0, true); 2018-05-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20180524
...位置 Segment.prototype.getPinPosition = function() { var radian = this.rotation * Math.PI / 180; var tx = this.x + Math.cos(radian) * this.width; var ty = this.y + Math.sin(radian) * this.width; return new Point(tx, ty); } this.size(width, height); this.init(); } Laya.class(Segment, "Segment", Spr...
来源: Laya_示例 发布时间: 20251130
...换矩阵。 TransformUV offset : Vector2 取偏移。 TransformUV rotation : Number 取旋转。 TransformUV tiling : Vector2 取平铺次数。 TransformUVPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By TransformUV() 创建一个 TransformUV...
来源: laya_api 发布时间: 20170929
...小的BUG,及解决方案 打开官方particle2d实例,修改他们的Rotation值,如sp.rotation=45你会发现粒子会缩小,如果sp.rotation=-90 粒子甚至会消失,我游戏中需要粒子能够依附我碰撞点发射。这样的BUG令人沮丧,如果走canvas的渲染模式则...
来源: Laya_社区 发布时间: 20180702
...t; for (let i = 0; i 0) { let prevSeg = segments[segments.length - 1]; seg.rotation = prevSeg.rotation; let point = seg.getPinPosition(); seg.x = prevSeg.x - point.x; seg.y = prevSeg.y - point.y; } segments.push(seg); } animate() { let seg = segments[0]; // 更新蛇的位置 targetPosition.x += vx;...
来源: Laya2.0_示例 发布时间: 20251130
..., "h": 299 }, "rotated": false, "trimmed": true, "spriteSourceSize": { "x": 133, "y": 21, "w": 137, "h": 299...
来源: Laya_社区 发布时间: 20170906
...链接 提交 3 个回复 Monica - 知识达人 赞同来自: 183*****755 rotate是方法,只要调用角度就会发生改变,你可以直接调localRotationEuler属性改变它的角度。使用这个方法就可以直接把第二个问题绕开了。 var t:Transform3D; t.localRotationEuler = ...
来源: Laya_社区 发布时间: 20170919
...hild: Laya.Sprite3D) { let position = child.transform.position.clone() let rotation = child.transform.rotation.clone() let scale = child.transform.getWorldLossyScale().clone() owner.addChild(child) child.transform.position = position child.transform.rotation = rotation child.transform.setWorldLossyS...
来源: Laya_社区 发布时间: 20200819