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

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

1. 2D物理-碰撞过滤器 [ 100%]

... private function mouseDown(e) { this.curTarget = e.target; // 方案一,使用 MouseJoint var mouseJoint: MouseJoint = this.curTarget.addComponent(MouseJoint); Laya.timer.callLater(mouseJoint, mouseJoint.onMouseDown); Laya.stage.on(Event.MOUSE_UP, this, this.destoryJoint); Laya.stage.on(Event.MOU...

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

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

...oint3.otherAnchor = anchor; // 因为有旋转,localAnchor很难计算,使用绝对位置换算 distanceJoint3.frequency = frequencyHz; distanceJoint3.damping = dampingRatio; leg1.addComponentIntance(distanceJoint3); distanceJoint3.maxLength = distanceJoint3.minLength = distanceJoint3.length || ...

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