大约有 150 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0070 秒)
...der.run(render); mouseConstraint = Matter.MouseConstraint.create(engine, { element: Render.canvas }); Matter.World.add(engine.world, mouseConstraint); render.mouse = mouseConstraint.mouse; } function initWorld() { // 创建游戏场景 var group = Matter.Body.nextGroup(true); var particleOptions = {...
来源: Laya_示例 发布时间: 20261113
...- this.lastMouseY; var yprElem = this.yawPitchRoll.elements; yprElem[0] += offsetX * this.rotaionSpeed * elapsedTime; //控制对象在X轴上的旋转 yprElem[1] -= offsetY * this.rotaionSpeed * elapsedTime; //控制对象在Y...
来源: Laya_社区 发布时间: 20170810
... var allLights = []; allLights = allLights.concat(scene._directionLights._elements); allLights = allLights.concat(scene._spotLights._elements); allLights = allLights.concat(scene._pointLights._elements); for (let i = 0; i < allLights.length; ++i) { let light = allLights[i]; for (let layer = 0; la...
来源: Laya_社区 发布时间: 20200110
...horizontalSpace, 0); for (let i = 0; i < this.text.length; i++) { const element = this.text.charAt(i); var _x = xAction(j); var _y = yAction(printNumber); this.sprite.graphics.fillText(element, _x, _y, fonts, this.color, "left"); if (yAction(printNumber + 1) > h) { j++; printNumber = 0; } else...
来源: Laya_社区 发布时间: 20191103
...y ConchVector4 Implements IClone Index Constructors constructor Properties elements ONE UnitW UnitX UnitY UnitZ ZERO Accessors w x y z Methods clone cloneTo fromArray length lengthSquared Clamp add distance distanceSquared dot equals lerp max min multiply normalize scale subtract transformByM4x4 Con...
来源: Laya3.0_api 发布时间: 20231102
...onchQuaternion Implements IClone Index Constructors constructor Properties elements DEFAULT NAN Accessors w x y z Methods clone cloneTo equals fromArray getYawPitchRoll identity invert length lengthSquared normalize rotateX rotateY rotateZ scaling add createFromAxisAngle createFromMatrix3x3 createFr...
来源: Laya3.0_api 发布时间: 20231102
...射线碰撞和UI点击穿透的问题 //从屏幕空间生成射线 point.elements[0] = MouseManager.instance.mouseX; point.elements[1] = MouseManager.instance.mouseY; camera.viewportPointToRay(point, ray); //射线检测获取所有检测碰撞到的物体 Physics.rayCastAll(...
来源: Laya_社区 发布时间: 20180120
...ity.y = 0;//关闭重力 // create a renderer var render = Render.create({ element: document.body, engine: engine }); // create two boxes and a ground var boxA = Bodies.rectangle(400, 200, 80, 80); var boxB = Bodies.rectangle(450, 50, 80, 80); var ground = Bodies.rectangle(400, 500, 810, 60, { isSta...
来源: Laya_社区 发布时间: 20170905
... if (this.VideoTexture != null) this.VideoTexture.element.requestVideoFrameCallback(fun); } this.VideoTexture.element.requestVideoFrameCallback(fun); 用此方法输出每帧渲染的时间间隔1、PC模式下VideoTexture播放视频纹理基本稳定...
来源: Laya_社区 发布时间: 20230807
...aticBatch 无论true与false 走的都代码流程都一样。 总之都是elements.add(element); 2 我使用staticBatchVolume 勾选Enable Static Instance Batch Render 就会报错! 3 性能问题 2.x性能测试的demo 有静态合批,动态合批的 3.x的就只有动态合批(并且 卡的...
来源: Laya_社区 发布时间: 20231214