大约有 4 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0017 秒)
...l = Laya.Laya.stage.addChild(new Laya.Label("单击屏幕产生新的小球刚体,击向bridge的随机位置")); label.top = 20; label.right = 20; label.fontSize = 16; label.color = "#e69999"; } dispose() { Laya.Laya.stage.offAll(Laya.Event.CLICK); Laya.Laya.stage.removeChild(this.label); } } new...
来源: Laya2.0_示例 发布时间: 20241117
...击屏幕,仿生机器人向相反方向运动\n单击产生新的小球刚体")); label.top = 20; label.right = 20; label.fontSize = 16; label.color = "#e69999"; } dispose() { Laya.Laya.stage.offAll(Laya.Event.CLICK); Laya.Laya.stage.offAll(Laya.Event.DOUBLE_CLICK); Laya.Laya.stage.removeChild(th...
来源: Laya2.0_示例 发布时间: 20241117
...y = 300; for (let i = 0, len = this.count; i window).box2d; // 遍历所有刚体 let bodys = this.bodys, body: RigidBody; for (let i = 0, len = this.count; i < len; i++) { body = bodys[i]; if (!this.touching[i]) { continue; } let bodyA: RigidBody = this.sensorCollider.owner.getComponent(RigidBody);...
来源: Laya2.0_示例 发布时间: 20241117
... | Physics_Physics_CollisionFiltering.k_boxCategory | 0x01; // 0x01为house刚体默认的category,若不设置,则会穿透house private var curTarget: Sprite; private var preMovementX: Number = 0; private var preMovementY: Number = 0; public function Physics_Physics_CollisionFiltering() { Laya...
来源: Laya2.0_示例 发布时间: 20241117