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

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

1. 2D物理-复合碰撞器 [ 100%]

... 2); box.pos(posx, posy); Laya.Laya.stage.addChild(box); let boxBody = box.addComponent(Laya.RigidBody); let box1Shape = box.addComponent(Laya.BoxCollider); let box2Shape = box.addComponent(Laya.BoxCollider); let box3Shape = box.addComponent(Laya.BoxCollider); let box4Shape = box.addComponent(Laya.B...

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

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

... let groundBody = new Laya.RigidBody(); groundBody.type = "static"; ground.addComponentIntance(groundBody); let chainCollider = ground.addComponent(Laya.ChainCollider); chainCollider.points = "50,400,50,600,1050,600,1050,400"; let sensorCollider = this.sensorCollider = ground.addComponent(Laya.Circl...

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

3. 2D物理-桥 [ 91%]

... let groundBody = new Laya.RigidBody(); groundBody.type = "static"; ground.addComponentIntance(groundBody); let chainCollider = ground.addComponent(Laya.ChainCollider); chainCollider.points = "50,600,1050,600"; let point1 = new Laya.Sprite(); Laya.Laya.stage.addChild(point1); point1.pos(startPosX, s...

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

4. 2D物理-碰撞过滤器 [ 89%]

...new Sprite(); Laya.stage.addChild(house); var rigidbody: RigidBody = house.addComponent(RigidBody); rigidbody.type = "static"; var chainCollider: ChainCollider = house.addComponent(ChainCollider); chainCollider.loop = true; chainCollider.points = "600,50,100,200,100,600,1100,600,1100,200"; } private...

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

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

...); let rigidbody = new Laya.RigidBody(); rigidbody.type = "static"; ground.addComponentIntance(rigidbody); let chainCollider = ground.addComponent(Laya.ChainCollider); chainCollider.points = "50,200,50,570,1050,570,1050,200"; for (let i = 1; i 0) { legCollider1.points = p1.concat(p2).concat(p3).join...

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