大约有 2 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0012 秒)
...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_示例 发布时间: 20241118
... | 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_示例 发布时间: 20241118