{"id":1545,"date":"2018-11-01T03:30:38","date_gmt":"2018-11-01T03:30:38","guid":{"rendered":"https:\/\/www.courses.tegabrain.com\/cc18\/?p=1545"},"modified":"2018-11-01T03:30:38","modified_gmt":"2018-11-01T03:30:38","slug":"crystal-research-post-5","status":"publish","type":"post","link":"https:\/\/www.courses.tegabrain.com\/cc18\/2018\/11\/01\/crystal-research-post-5\/","title":{"rendered":"Crystal research post 5"},"content":{"rendered":"<h1>p5.collide2D<\/h1>\n<p><a href=\"https:\/\/github.com\/bmoren\/p5.collide2D#collidelinecircle\">https:\/\/github.com\/bmoren\/p5.collide2D#collidelinecircle<\/a><\/p>\n<p>p5.collide 2D library contains functions that detect collision between 2 2D geometry, including points, circles, rectangles, lines, polygons, triangles, and arc. All functions returns a boolean value: when two shapes collide, it return true, while two don&#8217;t collide, it return false. And it also contain a function called collideDebug(). Once two geometries collide, this function draw\u00a0an ellipse at the collision point when\u00a0applicable and calculable.<\/p>\n<p>Example:\u00a0<a href=\"https:\/\/bmoren.github.io\/p5.collide2D\/examples\/swords\/index.html\">https:\/\/bmoren.github.io\/p5.collide2D\/examples\/swords\/index.html<\/a><\/p>\n<p>This is a sword game. So when one player is attacked by another&#8217;s sword, it will turn to red for 100 ms, meaning that the player gets hurt.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>p5.collide2D https:\/\/github.com\/bmoren\/p5.collide2D#collidelinecircle p5.collide 2D library contains functions that detect collision between 2 2D geometry, including points, circles, rectangles, lines, polygons, triangles, and arc. All functions returns a boolean value: when two shapes collide, it return true, while two don&#8217;t collide, it return false. And it also contain a function called collideDebug(). Once two geometries collide,<a class=\"more-link button\" href=\"https:\/\/www.courses.tegabrain.com\/cc18\/2018\/11\/01\/crystal-research-post-5\/\">Read More<\/a><\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[9],"tags":[],"class_list":["post-1545","post","type-post","status-publish","format-standard","hentry","category-researchpost5"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paeb9f-oV","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/posts\/1545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/comments?post=1545"}],"version-history":[{"count":1,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/posts\/1545\/revisions"}],"predecessor-version":[{"id":1550,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/posts\/1545\/revisions\/1550"}],"wp:attachment":[{"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/media?parent=1545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/categories?post=1545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/tags?post=1545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}