From 8ee6596cd54a706b1dc472ab99b182a01eec04ba Mon Sep 17 00:00:00 2001 From: Kamn Date: Sun, 11 Jan 2015 20:14:18 -0700 Subject: [PATCH] Fixed issue where passing in a Vector3 to position! will throw and IllegalAccess error --- src/play_clj/core_cameras.clj | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/play_clj/core_cameras.clj b/src/play_clj/core_cameras.clj index 8a6445b..060e5ca 100644 --- a/src/play_clj/core_cameras.clj +++ b/src/play_clj/core_cameras.clj @@ -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]