设置界限,世界libgdx [英] Setting boundaries to world in libgdx

查看:114
本文介绍了设置界限,世界libgdx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用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

这篇关于设置界限,世界libgdx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆