a610569731

HTML5 怎么和 matter-js 绑定刚体 碰撞检测
a610569731
  • Сообщения: 3

badlogic

抱歉,我们从未听说过something.js,因此很难就如何最好地实现您想做的事情给出建议。 您是否考虑过使用PixiJS或Phaser之类的引擎? 这些可能更容易与Spine集成。
I'm sorry, we have never heard of matter.js, so it's hard to give advice on how to best achieve what you want to do. Have you considered using an engine like PixiJS or Phaser? These might be easier to integrate with Spine.
Аватара пользователя
badlogic

Mario
  • Сообщения: 2108

a610569731

用的是 Phaser这个,物理引擎是这个 https://github.com/liabru/matter-js
我上个月刚买spine pro呢
我不知道怎么将boundingbox绑定?
{"type":"boundingbox","vertexCount":4,"vertices":[53.38,-21.57,145.24,-54.83,184.12,4.81,71.88,17.28]}
a610569731
  • Сообщения: 3

badlogic

恐怕没有现成的功能可以将Spine和issue-js结合起来。 我们不是问题js或Phaser的专家。 相反,Pharser维护人员负责Spine集成。 您可以在他们的论坛上尝试问一下如何将边界框数据推送到issue-js中吗? 恐怕我们根本不熟悉该API。
I'm afraid there is no out-of-the-box functionality to combine Spine and matter-js. We are not experts in matter-js or Phaser ourselves. Instead, the Pharser maintainers are responsible for the Spine integration. Could you maybe try asking on their forums how push the bounding box data into matter-js? I'm afraid we are not familiar with that API at all.
Аватара пользователя
badlogic

Mario
  • Сообщения: 2108


Вернуться в 中国Spine用户