Fixed issue where passing in a Vector3 to position! will throw and IllegalAccess error

This commit is contained in:
Kamn
2015-01-11 20:14:18 -07:00
parent fa8ceeb92d
commit 8ee6596cd5

View File

@@ -165,8 +165,7 @@ of the camera will be set."
"Sets the position of `object`. If `object` is a screen, the position of the
camera will be set."
([object vec-3]
(let [^Camera camera (u/get-obj object :camera)]
(set! (. camera position) vec-3)))
(position! object (x vec-3) (y vec-3) (z vec-3)))
([object x-val y-val]
(position! object x-val y-val nil))
([object x-val y-val z-val]