Cocos2dx - setVelocity works differently on other devices with same resolution

こ雲淡風輕ζ 提交于 2020-01-25 20:25:41

问题


I'm dying with physics , i've tried to use setVelocity however i got slightly different result from different devices.

I've tested on iPhone 5 (on simulator) and iPhone 6 (real device) The Director::getInstance()->getOpenGLView()->getFrameSize() returns both devices is 640x1136 pixels

But i see they have different result after the animation , its about 2-5 pixels. I really don't know why.

I'm making a multiple player game so i need exactly same coordinate of objects on every devices. Does cocos physics return randomly result?

来源:https://stackoverflow.com/questions/39815898/cocos2dx-setvelocity-works-differently-on-other-devices-with-same-resolution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!