Explorar el Código

Add angle of view to face user

master
Adrian Short hace 11 años
padre
commit
2700a7ac34
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  1. +9
    -1
      app/helpers/posts_helper.rb

+ 9
- 1
app/helpers/posts_helper.rb Ver fichero

@@ -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


Cargando…
Cancelar
Guardar