Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我正在使用 libgdx 框架开发游戏,因为我无法为世界设置边界以限制参与者。当一个灯具越过屏幕(世界)边缘时,它应该返回或停在那里。我知道通过计算 x,y 坐标我们可以做到,如果有其他方法请在这方面提供帮助。
得到解决..通过将边缘设置为形状