Setting boundaries to world in libgdx

霸气de小男生 提交于 2019-12-08 09:01:14

问题


Hi I am developing a game using libgdx framework, in that i am unable to set boundaries to the world in order to limit the actors. When ever a fixture crossed the screen(world) edge it should revert back or stop there itself. I know by calculating x,y co-ordinates we can do it, if there any other way please help in this regard.


回答1:


got resolved.. by setting edges to shapes



来源:https://stackoverflow.com/questions/6730981/setting-boundaries-to-world-in-libgdx

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