{"id":1787,"date":"2017-11-07T22:28:32","date_gmt":"2017-11-07T21:28:32","guid":{"rendered":"http:\/\/www.edy.es\/dev\/?p=1787"},"modified":"2017-11-07T22:31:04","modified_gmt":"2017-11-07T21:31:04","slug":"vehicle-physics-pro-november-2017-update","status":"publish","type":"post","link":"https:\/\/www.edy.es\/dev\/2017\/11\/vehicle-physics-pro-november-2017-update\/","title":{"rendered":"Vehicle Physics Pro November 2017 Update"},"content":{"rendered":"<p>This post contains instructions for upgrading existing projects that use\u00a0Vehicle Physics Pro to the latest\u00a0November 2017 version that will be deployed <strong>next Friday 10th November at 10am UTC<\/strong>. Licensees of the Professional and Enterprise licenses should\u00a0read these instructions in order to update their project(s).<\/p>\n<h4>Why this update requires special instructions?<\/h4>\n<ol>\n<li>The repository <strong>Vehicle Physics Core Assets<\/strong> is replaced by the new repository <strong>Vehicle Physics Sample Assets<\/strong>.<\/li>\n<li>All scripts and components are now under namespaces.\u00a0Some classes and methods have also been renamed.<\/li>\n<\/ol>\n<p>As result of 1) the update may require removing a submodule from the project, which is a non-trivial task.<\/p>\n<h4>When should I apply this update?<\/h4>\n<p>The update will be deployed at the <em>master<\/em> branch\u00a0<strong>next Friday 10th November at\u00a010am\u00a0UTC<\/strong>. The remote repository Vehicle Physics Core Assets will be no longer\u00a0available after that time.<\/p>\n<h4>How this update affects my project(s)?<\/h4>\n<p>Depending on how are you using\u00a0VPP in your projects:<\/p>\n<ul>\n<li><strong>If you don&#8217;t use the repository Vehicle Physics Core Assets<\/strong> then you don&#8217;t have to do anything special. Just update the other VPP repositories normally\u00a0and follow the indications below for updating your\u00a0scripts.<\/li>\n<li><strong>If you&#8217;ve cloned the repository Vehicle Physics Pro<\/strong>, which contains the main development project for Unity,\u00a0then\u00a0simply remove your local copy and clone it again.<\/li>\n<li><strong>If you&#8217;ve included the VPP repositories in your project as isolated GIT repositories or\u00a0regular folders<\/strong> (no submodules) then simply delete the folder with the repository\u00a0Vehicle Physics Core Assets and include the new repository Vehicle Physics Sample Assets in your project.<\/li>\n<li><strong>If you&#8217;ve included the VPP repositories as submodules in your project<\/strong>, including Vehicle Physics Core Assets, then follow the instructions below for replacing the submodule with the new one.<\/li>\n<\/ul>\n<h4>How to upgrade the submodule Vehicle Physics Core Assets in my project?<\/h4>\n<p>Remove\u00a0the submodule Vehicle Physics Core Assets entirely, then add the repository Vehicle Physics Sample Assets as new submodule.<\/p>\n<p>As stated above, you don&#8217;t need to do this if you don&#8217;t use Vehicle Physics Core Assets in your project, or you use it but it&#8217;s not included as GIT submodule.<\/p>\n<ol>\n<li>Ensure there are no uncommitted local changes in your project or any of your project&#8217;s submodules.<\/li>\n<li>Close Unity.<\/li>\n<li>Update the VPP submodules normally.<\/li>\n<li>Remove the submodule Vehicle Physics Core Assets.<br \/>\nOpen GIT Bash. This code assumes the submodule to be located in the path &#8220;Assets\/Core\/Vehicle Physics core assets&#8221; (otherwise use the correct path here):<\/p>\n<pre>git submodule deinit -f Assets\/Core\/Vehicle\\ Physics\\ core\\ assets\r\nrm -rf .git\/modules\/Assets\/Core\/Vehicle\\ Physics\\ core\\ assets\r\ngit rm -f\u00a0Assets\/Core\/Vehicle\\ Physics\\ core\\ assets<\/pre>\n<\/li>\n<li>Clone the new submodule Vehicle Physics Sample Assets<br \/>\nThis code will clone the submodule in the path &#8220;Assets\/Core\/Vehicle Physics core assets&#8221;. Use the proper path if necessary.<\/p>\n<pre>git clone\u00a0ssh:\/\/git@projects.edy.es\/edy\/vehicle-physics-sample-assets.git Assets\/Core\/Vehicle\\ Physics\\ Sample\\ Assets<\/pre>\n<\/li>\n<li>Open your project in Unity. The assets\u00a0will be reimported.<\/li>\n<li>Update your scripts following the indications below.<\/li>\n<\/ol>\n<h4>How to update the scripts after applying the upgrade?<\/h4>\n<p>Open the upgraded project in Unity. Most errors will suggest the namespace to use themselves.<\/p>\n<ul>\n<li>Namespace <strong>EdyCommonTools<\/strong> for the components and scripts in Common Tools Core.<\/li>\n<li>Namespace <strong>VehiclePhysics<\/strong> for the components and scripts in Vehicle Physics Core.<\/li>\n<li>Math methods are now part of the static MathUtility class in the EdyCommonTools namespace. For example:\u00a0CommonTools.FastAbs -&gt; MathUtility.FastAbs<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This post contains instructions for upgrading existing projects that use\u00a0Vehicle Physics Pro to the latest\u00a0November 2017 version that will be deployed next Friday 10th November at 10am UTC. Licensees of the Professional and Enterprise licenses should\u00a0read these instructions in order to update their project(s). Why this update requires special instructions? The repository Vehicle Physics Core [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1792,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_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},"jetpack_post_was_ever_published":false},"categories":[11,17,4,5],"tags":[],"class_list":["post-1787","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-slideshow","category-unity","category-vehicle-physics"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2017\/11\/Vehicle-Physics-Pro-Code.png","jetpack_shortlink":"https:\/\/wp.me\/p1PjRF-sP","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/posts\/1787","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/comments?post=1787"}],"version-history":[{"count":5,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/posts\/1787\/revisions"}],"predecessor-version":[{"id":1793,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/posts\/1787\/revisions\/1793"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/media\/1792"}],"wp:attachment":[{"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/media?parent=1787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/categories?post=1787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/tags?post=1787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}