Tanks turret is now centered on its body

This commit is contained in:
2019-11-20 10:05:19 -06:00
parent 2d70736753
commit 7775ccb3a3
4 changed files with 8 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ class IMICRTS
def draw
render unless @render
@angle += 0.1
@render.draw_rot(@parent.position.x + @center.x, @parent.position.y + @center.y, @parent.position.z, @angle)
@render.draw_rot(@parent.position.x, @parent.position.y, @parent.position.z, @angle, @center.x, @center.y)
end
end
end