我使用libgdx框架开发游戏,因为我无法设定界限的世界,以限制演员。当过一次装夹越过屏幕(世界)的边缘,应该恢复或停在那里本身。我知道,通过计算X,Y坐标,我们可以做到这一点,如果有任何其他方式,请在这方面提供帮助。
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.
得到通过设置边缘形状解决..
got resolved.. by setting edges to shapes