大约有 3 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0012 秒)
...totype.onMouseUp = function (evt) { if (this.isDestroyed) { //通过设置 visible=true ,来触发渲染,然后引擎会自动恢复资源 this.spBg.visible = true; this.aniFly.visible = true; this.isDestroyed = false; this.txt.text = "销毁"; } else { //通过设置 visible=false ,来停止...
来源: Laya_示例 发布时间: 20241117
...ptions = { friction: 0.00001, collisionFilter: { group: group }, render: { visible: false } }; var cloth = Matter.Composites.softBody(200, 200, 20, 12, 5, 5, false, 8, particleOptions); for (var i = 0; i < 20; i++) { cloth.bodies[i].isStatic = true; } Matter.World.add(engine.world, [ cloth, Matter.B...
来源: Laya_示例 发布时间: 20241117
...d = Matter.Bodies.rectangle(395, 600, 815, 50, { isStatic: true, render: { visible: false } }), rockOptions = { density: 0.004, render: { sprite: { texture: '../../res/physics/img/rock.png', xOffset: 23.5, yOffset: 23.5 } } }, rock = Matter.Bodies.polygon(170, 450, 8, 20, rockOptions), anchor = { x:...
来源: Laya_示例 发布时间: 20241117