{"id":670,"date":"2013-04-30T17:04:46","date_gmt":"2013-04-30T23:04:46","guid":{"rendered":"http:\/\/blogs.discovery.wisc.edu\/ds501\/?p=670"},"modified":"2013-04-30T17:04:46","modified_gmt":"2013-04-30T23:04:46","slug":"attach-things-to-users-head","status":"publish","type":"post","link":"https:\/\/blogs.discovery.wisc.edu\/ds501\/2013\/04\/30\/attach-things-to-users-head\/","title":{"rendered":"Attach things to user&#8217;s head"},"content":{"rendered":"<p>Imagine if you have to show some kind of game status on screen for the tracked user&#8230; You can just have that object always in front of the user in the CAVE. There are two ways:<\/p>\n<p>1) Use OnUpdate() to always update that object&#8217;s position to User0&#8217;s position. OR<\/p>\n<p>2) When initializing, use self.movable().setParent(&#8216;User0Head&#8217;) to attach it to the User0Head entity. You can then set the position of the object, and it&#8217;ll be in relation to the parent. You won&#8217;t need to use OnUpdate() to position it anymore!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Imagine if you have to show some kind of game status on screen for the tracked user&#8230; You can just have that object always in front of the user in the CAVE. There are two ways: 1) Use OnUpdate() to &hellip; <a href=\"https:\/\/blogs.discovery.wisc.edu\/ds501\/2013\/04\/30\/attach-things-to-users-head\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.discovery.wisc.edu\/ds501\/wp-json\/wp\/v2\/posts\/670"}],"collection":[{"href":"https:\/\/blogs.discovery.wisc.edu\/ds501\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.discovery.wisc.edu\/ds501\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.discovery.wisc.edu\/ds501\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.discovery.wisc.edu\/ds501\/wp-json\/wp\/v2\/comments?post=670"}],"version-history":[{"count":1,"href":"https:\/\/blogs.discovery.wisc.edu\/ds501\/wp-json\/wp\/v2\/posts\/670\/revisions"}],"predecessor-version":[{"id":671,"href":"https:\/\/blogs.discovery.wisc.edu\/ds501\/wp-json\/wp\/v2\/posts\/670\/revisions\/671"}],"wp:attachment":[{"href":"https:\/\/blogs.discovery.wisc.edu\/ds501\/wp-json\/wp\/v2\/media?parent=670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.discovery.wisc.edu\/ds501\/wp-json\/wp\/v2\/categories?post=670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.discovery.wisc.edu\/ds501\/wp-json\/wp\/v2\/tags?post=670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}