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

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

11. 鼠标交互-双指旋转(多点触控) [ 84%]

...ent.MOUSE_DOWN, this, onMouseDown); } private function onMouseDown(e:Event=null):void { var touches:Array = e.touches; if(touches && touches.length == 2) { preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, touches[0].stageX - touches[1].stageX); Laya.stage.on(Event.MOUSE_MOVE, this, onM...

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

12. laya.d3.math.Vector2 [ 83%]

...量的点积。 Vector2  forNativeElement(nativeElements:Float32Array = null):voidVector2  fromArray(array:Array, offset:int = 0):void 从Array数组拷贝值。 Vector2  normalize(s:Vector2, out:Vector2):void[static] 归一化二维向量。 Vector2  rewriteNumProperty(proto:*, name:String,...

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

13. laya.maths.Rectangle [ 83%]

...形。 此方法会修改本对象。 Rectangle  clone(out:Rectangle = null):Rectangle 返回一个 Rectangle 对象,其 x、y、width 和 height 属性的值与当前 Rectangle 对象的对应值相同。 Rectangle  contains(x:Number, y:Number):Boolean 确定由此 Rectangle 对象定义的...

来源: laya_api 发布时间: 20170929

14. 鼠标交互-双指旋转(多点触控) [ 83%]

...ent.MOUSE_DOWN, this, onMouseDown); } private function onMouseDown(e:Event=null):void { var touches:Array = e.touches; if(touches && touches.length == 2) { preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, touches[0].stageX - touches[1].stageX); Laya.stage.on(Event.MOUSE_MOVE, this, onM...

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

15. laya.d3.math.Viewport_API3.0 [ 83%]

... view: Matrix4x4 视图矩阵。 world: Matrix4x4 世界矩阵,可设置为null。 out: Vector3 输出向量。 Returns void Globals "laya/d3/math/Viewport" Viewport constructor height maxDepth minDepth width x y _tempViewport cloneTo project set unprojectFromMat unprojectFromWVP Legend Class Class ...

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

16. laya.maths.Rectangle [ 83%]

...形。 此方法会修改本对象。 Rectangle  clone(out:Rectangle = null):Rectangle 返回一个 Rectangle 对象,其 x、y、width 和 height 属性的值与当前 Rectangle 对象的对应值相同。 Rectangle  contains(x:Number, y:Number):Boolean 确定由此 Rectangle 对象定义的...

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

17. 【分享】圆形进度条上图片跟随进度并旋转角度 [ 82%]

... Handler.create(this, this.onLoaded), Handler.create(this, this.onLoading, null, false));      /** * 加载资源进度 * @param percent 百分比 */ private onLoading(percent: number): void { this.view.box_mark.graphics.drawPie(216, 216, 216, -90, (-90 + Math.floor(percent * 360)), "#ff0000"); /...

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

18. Sprite3D-Sprite3D变换 [ 81%]

..., 0)); layaMonkey3 = scene.addChild(Laya.Sprite3D.instantiate(layaMonkey1, null, false, new Laya.Vector3(0.6, 0, 0))); Laya.timer.frameLoop(1, this, animate); } var _position = new Laya.Vector3(-0.6, 0, 0); var _rotate = new Laya.Vector3(0, 1, 0); var _scale = new Laya.Vector3(); var scaleDelta = 0;...

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

19. 简单的震屏效果 [ 81%]

...var vibrateObj = {         x: 0, y: 0, rotation: 0, view: null }; /** * 调用该方法前,请将view的描点设置为中心点 * 震屏效果 * 三个变量:x水平方向  5,y垂直方向  5,rotation旋转角度  10 * @param view * @param time  持续时间 以毫秒...

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

20. 射线检测-放置物体 [ 80%]

...form.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //平面 var plane = scene.addC...

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