大约有 4 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0013 秒)
...is.createSensor(); } createSensor() { let ground = new Sprite(); this.Main.box2D.addChild(ground); let groundBody: RigidBody = new RigidBody(); groundBody.type = "static"; ground.addComponentIntance(groundBody); let chainCollider: ChainCollider = ground.addComponent(ChainCollider); chainCollider.poi...
来源: Laya2.0_示例 发布时间: 20241117
...Joint2.joint.GetLength() * Laya.Physics.PIXEL_RATIO; let localAnchor = new box2d.b2Vec2(); wheelBody.getBody().GetLocalPoint({ x: (this.pos[0] + this.m_offset[0]) / Laya.Physics.PIXEL_RATIO, y: (this.pos[1] + this.m_offset[1]) / Laya.Physics.PIXEL_RATIO }, localAnchor); let anchor = [-localAnchor.x ...
来源: Laya2.0_示例 发布时间: 20241117
...nst startPosX = 250, startPosY = 450; let ground = new Sprite(); this.Main.box2D.addChild(ground); let groundBody: RigidBody = new RigidBody(); groundBody.type = "static"; ground.addComponentIntance(groundBody); let chainCollider: ChainCollider = ground.addComponent(ChainCollider); chainCollider.poi...
来源: Laya2.0_示例 发布时间: 20241117
...; box.pivot(box.width / 2, box.height / 2); box.pos(posx, posy); this.Main.box2D.addChild(box); let boxBody: RigidBody = box.addComponent(RigidBody); // boxBody.gravityScale = 0; let box1Shape: BoxCollider = box.addComponent(BoxCollider); let box2Shape: BoxCollider = box.addComponent(BoxCollider); l...
来源: Laya2.0_示例 发布时间: 20241117