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

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

161. laya.d3.math.OrientedBoundBox [ 75%]

...| Frames No Frames OrientedBoundBoxProperties | Methods Packagelaya.d3.mathClasspublic class OrientedBoundBoxInheritanceOrientedBoundBox Object OrientedBoundBox 类用于创建OBB包围盒。 Public Properties PropertyDefined By  extents : Vector3每个轴长度的一半OrientedBoundBox  tra...

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

162. laya.maths.Rectangle [ 75%]

...Frames No Frames RectangleProperties | Methods | Constants Packagelaya.mathsClasspublic class RectangleInheritanceRectangle Object Rectangle 对象是按其位置(由它左上角的点 (x, y) 确定)以及宽度和高度定义的区域。 Rectangle 类的 x、y、width 和 height 属性相互...

来源: laya_api 发布时间: 20170929

163. LayaRender问题 Matter在LayaRender下出现不正常问题 [ 75%]

...gine.world, [ Bodies.rectangle(200, 150, 500, 20, { isStatic: true, angle: Math.PI * 0.06 }), Bodies.rectangle(500, 350, 1650, 20, { isStatic: true, angle: -Math.PI * 0.06 }), Bodies.rectangle(300, 560, 1600, 20, { isStatic: true, angle: Math.PI * 0.04 }) ]); engine.world.gravity.y = 1; var scale = ...

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

164. Sprite-旋转缩放 [ 75%]

...) { ape.rotation += 2; //心跳缩放 scaleDelta += 0.02; var scaleValue = Math.sin(scaleDelta); ape.scale(scaleValue, scaleValue); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export...

来源: Laya_示例 发布时间: 20240930

165. 扇形遮罩画不全画了一个很奇怪的形状但是矩形的就没问题。显示效果如下:版本号1.7.10 [ 75%]

...               processTimer = ProcessTimer.create(img,new laya.maths.Size(70,70));                 processTimer.setPercentage(100);                 processTimer.setType(ProcessTimer.PROGRESS_TIMER_TYPE_RECT);                 processTimer.setPosition(0,0...

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

166. toFixed(0)函数是什么作用? [ 74%]

...数是什么作用? text = new Text(); text.fontSize = 20; text.text = (Math.random() * 100).toFixed(0); text.rotation = Math.random() * 360; text.color = "#CCCCCC"; 2018-03-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...

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

167. setSubPixels画布擦除不掉 [ 74%]

setSubPixels画布擦除不掉 this.btn.label = Math.random().toString(); // console.log(Math.random()); let tex:Laya.Texture = Laya.Loader.getRes(this.bUrl); let x:number = this._testStatus == true ? 0:50;//Math.random()>0.5 ? 50 : 0; this._testStatus = !this._testStatus; // let canvasInfo = th...

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

168. laya.maths.Rectangle [ 74%]

...Frames No Frames RectangleProperties | Methods | Constants Packagelaya.mathsClasspublic class RectangleInheritanceRectangle Object Rectangle 对象是按其位置(由它左上角的点 (x, y) 确定)以及宽度和高度定义的区域。 Rectangle 类的 x、y、width 和 height 属性相互...

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

169. Sprite-旋转缩放 [ 74%]

...pe.rotation += 2; //心跳缩放 this.scaleDelta += 0.02; let scaleValue = Math.sin(this.scaleDelta); this.ape.scale(scaleValue, scaleValue); } } new Sprite_RoateAndScale();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser;...

来源: Laya2.0_示例 发布时间: 20240930

170. 射线检测-碰撞器混合 [ 74%]

...3.core.render.RenderState; import laya.d3.core.scene.Scene; import laya.d3.math.OrientedBoundBox; import laya.d3.math.Plane; import laya.d3.math.Quaternion; import laya.d3.math.Ray; import laya.d3.math.Vector2; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture...

来源: Laya_示例 发布时间: 20240930