• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0012 秒)

1. 2D物理-碰撞事件与传感器 [ 100%]

...lider.x = 450; sensorCollider.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....

来源: Laya2.0_示例 发布时间: 20240929

2. 2D物理-仿生机器人 [ 74%]

...der.points = "50,200,50,570,1050,570,1050,200"; // Balls for (let i = 1; i window).box2d; const wheelBody: RigidBody = this.wheel.getComponent(RigidBody); const chassisBody: RigidBody = this.chassis.getComponent(RigidBody); const p1 = [54 * s * this.scale, -61 * -1 * this.scale]; const p2 = [72 * s ...

来源: Laya2.0_示例 发布时间: 20240929