【发布时间】:2016-01-01 06:45:45
【问题描述】:
我尝试设置边界矩形位置。
spr.getBoundingRectangle().setPosition(100,100);
Sytem.out.println(spr.getBoundingRectangle.getX() + " " + spr.getBoundingRectangle.getX());
// and the output is always 0,0(position)
我也尝试在条件 == true 时设置它的位置
if(justTouched == true){
spr.getBoundingRectangle().setPosition(100,100);
Sytem.out.println(spr.getBoundingRectangle.getX() + " " + spr.getBoundingRectangle.getX());
}// but the result is the same
【问题讨论】:
标签: java libgdx position bounding-box