guawoo

Results 6 comments of guawoo

It can't work in windows. I built it with godot 2.0.3 stable. everything was fine when compiled,no error reported,but it crashed when ran in mobile phone.I have no idea how...

@jtenner Thank you so much, I have to set ccSpeedTreshold to 0 and use github version,but this case still appear. It is not normal appearance, need to special shapes and...

我对matter也不是很熟,建议google或者查看它的文档。

很久没弄了,记得好像是它们两个的坐标系不同,一个是屏幕坐标(左上0,0),一个是笛卡尔坐标(左下0,0)。

@kenchelsea8 egret使用matter时,只用到了matter的物理计算,渲染是使用egret自己的,所以可以随便使用egret的任何一种容器。现在demo里用到的显示对像用就egret.bitmap。请查看EgretRender.ts文件。你只需要根据自己修改一下代码就好了。 如果你想直接new一个bitmap然后就加到matter里是不行的,首先你要理解matter只负责刚体运算,所以matter里只有刚体,你只能创建一个刚体,然后加入matter里,而刚体与显示对象需要你手动绑定,matter负责更新刚体的位置和角度以及其它信息,你根据刚体的这些信息去更新显示对象的位置角度以及其它。

这好像是matter.js的一个bug,具体请看[https://github.com/liabru/matter-js/issues/5](https://github.com/liabru/matter-js/issues/5)