大约有 3 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0013 秒)
...X = targetX - circlePosx; let velocityY = targetY - circlePosy; circleBody.linearVelocity = { x: velocityX * 3, y: velocityY * 3 }; Laya.Laya.timer.frameOnce(120, this, function () { newBall.destroy(); }); }); let label = this.label = Laya.Laya.stage.addChild(new Laya.Label("单击屏幕产生新的...
来源: Laya2.0_示例 发布时间: 20241118
...s.curTarget.getComponent(RigidBody); rigidbody.type = "dynamic"; rigidbody.linearVelocity = [this.preMovementX, this.preMovementY]; this.curTarget = null; } destoryJoint() { Laya.stage.off(Event.MOUSE_UP, this, this.destoryJoint); Laya.stage.off(Event.MOUSE_OUT, this, this.destoryJoint); let mouseJo...
来源: Laya2.0_示例 发布时间: 20241118
...sPos.x - circlePosx; let velocityY = chassisPos.y - circlePosy; circleBody.linearVelocity = { x: velocityX * 5, y: velocityY * 5 }; Laya.Laya.timer.frameOnce(120, this, function () { newBall.destroy(); }); }); let label = this.label = Laya.Laya.stage.addChild(new Laya.Label("双击屏幕,仿生机...
来源: Laya2.0_示例 发布时间: 20241118