hack for making centering work.
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
scale-x scale-y angle origin-x origin-y]}
|
scale-x scale-y angle origin-x origin-y]}
|
||||||
_
|
_
|
||||||
batch]
|
batch]
|
||||||
(let [x (float (or x 0))
|
(let [x (- (float (or x 0)) (* (float (or origin-x 0.0)) (float (or scale-x 1.0))))
|
||||||
y (float (or y 0))
|
y (float (or y 0))
|
||||||
width (float (or width (.getRegionWidth object)))
|
width (float (or width (.getRegionWidth object)))
|
||||||
height (float (or height (.getRegionHeight object)))]
|
height (float (or height (.getRegionHeight object)))]
|
||||||
|
|||||||
Reference in New Issue
Block a user