【发布时间】:2016-08-04 03:54:39
【问题描述】:
示例:我有 3 个旋转 3 次的对象,那么我怎样才能按照对象的方向向前移动对象。
【问题讨论】:
标签: libgdx rotation move forward
示例:我有 3 个旋转 3 次的对象,那么我怎样才能按照对象的方向向前移动对象。
【问题讨论】:
标签: libgdx rotation move forward
如果您使用精灵来保存每个对象的值,请设置您希望对象移动的 x/y += 方向。否则,如果您通过 spritebatch 绘制图像,则可以使用 batch.draw(texture, x, y) 并以这种方式设置 x 和 y 坐标。
【讨论】: