From 2700a7ac34eb80169b335b0026c89dcd7aed0026 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Thu, 11 Apr 2013 16:58:04 +0100 Subject: [PATCH] Add angle of view to face user --- app/helpers/posts_helper.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/helpers/posts_helper.rb b/app/helpers/posts_helper.rb index ae6fe1a..0d5ddc1 100644 --- a/app/helpers/posts_helper.rb +++ b/app/helpers/posts_helper.rb @@ -34,8 +34,16 @@ module PostsHelper :reducedURL => subscription.icon_url, :size => 60 } + + # http://layar.com/documentation/browser/api/getpois-response/hotspots/ res[:transform] = { - :rel => true # icon always faces the user + :rotate => { + :rel => true, + :axis => { :x => 0, :y => 0, :z => 1 }, + :angle => 0 + }, + :translate => { :x => 0, :y => -0.075, :z => 0 }, + :scale => 0.01 } end res