{"id":245,"date":"2018-05-31T18:00:28","date_gmt":"2018-05-31T23:00:28","guid":{"rendered":"http:\/\/www.chroniclesoftright.com\/blog\/?p=245"},"modified":"2018-05-31T09:55:21","modified_gmt":"2018-05-31T14:55:21","slug":"pigs-on-the-move","status":"publish","type":"post","link":"https:\/\/www.chroniclesoftright.com\/blog\/2018\/05\/31\/pigs-on-the-move\/","title":{"rendered":"Pigs on the MOVE!"},"content":{"rendered":"<p>Ok, technically the boars were already moving around but now it&#8217;s not all jittery and jumpy.\u00a0 I found a fun little library called <a href=\"https:\/\/github.com\/sole\/tween.js\" target=\"_blank\" rel=\"noopener\">Tween.js<\/a> that does, you guessed it, <a href=\"https:\/\/en.wikipedia.org\/wiki\/Inbetweening\" target=\"_blank\" rel=\"noopener\">tweening<\/a>.\u00a0 I have used the excellent <a href=\"http:\/\/createjs.com\" target=\"_blank\" rel=\"noopener\">CreateJS<\/a> suite before and it includes tweening functionality, but Tween.js has examples specific to <a href=\"http:\/\/threejs.org\" target=\"_blank\" rel=\"noopener\">THREE.js<\/a> so I went with it for now.\u00a0 In any case my boars are still walking around in a completely random pattern and their location only changes once per second, but in between those 1-second updates the boar model moves smoothly.\u00a0 This tweening thing will probably be a really big part of the whole project because rarely am I going to want anything in the world to just move instantly to a new location.\u00a0 Anyway, I&#8217;m excited about how Lyridia looks now and I need to decide what to do next.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ok, technically the boars were already moving around but now it&#8217;s not all jittery and jumpy.\u00a0 I found a fun little library called Tween.js that does, you guessed it, tweening.\u00a0 I have used the excellent CreateJS suite before and it includes tweening functionality, but Tween.js has examples specific to THREE.js so I went with it&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-245","post","type-post","status-publish","format-standard","hentry","category-planning-and-development"],"_links":{"self":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/comments?post=245"}],"version-history":[{"count":1,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/245\/revisions"}],"predecessor-version":[{"id":246,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/245\/revisions\/246"}],"wp:attachment":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/media?parent=245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/categories?post=245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/tags?post=245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}