{"id":1294,"date":"2025-03-13T16:48:54","date_gmt":"2025-03-13T16:48:54","guid":{"rendered":"https:\/\/www.portalsunited.com:443\/?post_type=docs&#038;p=1294"},"modified":"2025-03-13T16:48:55","modified_gmt":"2025-03-13T16:48:55","password":"","slug":"world-builder-vector-compare-vector-nodes","status":"publish","type":"docs","link":"https:\/\/www.portalsunited.com:443\/docs\/world-builder-vector-compare-vector-nodes\/","title":{"rendered":"World Builder &#8211; Vector &amp; Compare Vector Nodes"},"content":{"rendered":"\n<p>Vector2, Vector3 and Vector4 nodes are simple value nodes with only one output and no inputs ( see also <a href=\"https:\/\/www.portalsunited.com:443\/docs\/world-builder-value-nodes-boolean-number-float-text\/\" data-type=\"docs\" data-id=\"1290\">World Builder \u2013 Value nodes (Boolean, Number, Float, Text)<\/a>) .  <\/p>\n\n\n\n<p>If you connect a Vector3 (x,y,z) node to an input of Vector2 type, only x and y value of the Vector3 will be used. <br>If you connect a Vector4 (x,y,z,w) node to an input of Vector3\/Vector2 type, only x, y and z \/ only x and y will be used.<\/p>\n\n\n\n<p>Compare Vector nodes check whether the two input vectors a and b are equal. In the example below, the first two comparisons yield a <em>true <\/em>result, whereas the third one yields a <em>false<\/em> one. <\/p>\n\n\n\n<p>If you reconstruct the example below and test it in Portal Hopper, your avatar should fall down right away, because the default cube it is standing on gets deactivated. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1080\" src=\"https:\/\/www.portalsunited.com:443\/wp-content\/uploads\/2025\/03\/Image-Sequence_069_0000.jpg\" alt=\"\" class=\"wp-image-1295\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Vector2, Vector3 and Vector4 nodes are simple value nodes with only one output and no inputs ( see also World Builder \u2013 Value nodes (Boolean, Number, Float, Text)) . If you connect a Vector3 (x,y,z) node to an input of Vector2 type, only x and y value of the Vector3 will be used. If you&#8230;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"doc_category":[23],"doc_tag":[],"class_list":["post-1294","docs","type-docs","status-publish","hentry","doc_category-world-builder-logic-editor"],"year_month":"2025-08","word_count":144,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"jason.horn","author_nicename":"jason-horn","author_url":"https:\/\/www.portalsunited.com:443\/author\/jason-horn\/"},"doc_category_info":[{"term_name":"World Builder - Logic Editor","term_url":"https:\/\/www.portalsunited.com:443\/docs-category\/world-builder-logic-editor\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/docs\/1294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/comments?post=1294"}],"version-history":[{"count":1,"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/docs\/1294\/revisions"}],"predecessor-version":[{"id":1296,"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/docs\/1294\/revisions\/1296"}],"wp:attachment":[{"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/media?parent=1294"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/doc_category?post=1294"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/doc_tag?post=1294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}