问题
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