{"id":381,"date":"2011-12-26T22:23:07","date_gmt":"2011-12-26T21:23:07","guid":{"rendered":"http:\/\/www.edy.es\/dev\/?page_id=381"},"modified":"2024-02-12T15:43:15","modified_gmt":"2024-02-12T14:43:15","slug":"upgrade-notes","status":"publish","type":"page","link":"https:\/\/www.edy.es\/dev\/vehicle-physics\/upgrade-notes\/","title":{"rendered":"Edy&#8217;s Vehicle Physics upgrade notes"},"content":{"rendered":"<p style=\"text-align: center;\"><div class=\"menu-edys-vehicle-physics-container\"><ul id=\"short_menu_69eb44706bb63\" class=\"shortcode_menu pagemenu wpsm-menu enhance_shortcode_menu_inline  \"><li id=\"menu-item-1335\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-1335\"><a href=\"https:\/\/www.edy.es\/dev\/vehicle-physics\/\">Home<\/a><\/li>\n<li id=\"menu-item-1338\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-1338\"><a href=\"https:\/\/www.edy.es\/dev\/vehicle-physics\/features\/\">Features<\/a><\/li>\n<li id=\"menu-item-1412\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-1412\"><a href=\"https:\/\/www.edy.es\/dev\/vehicle-physics\/demo\/\">Demo<\/a><\/li>\n<li id=\"menu-item-1384\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-1384\"><a href=\"https:\/\/www.edy.es\/dev\/vehicle-physics\/user-guide\/\">User Guide<\/a><\/li>\n<li id=\"menu-item-1336\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-1336\"><a href=\"https:\/\/www.edy.es\/dev\/vehicle-physics\/upgrade-notes\/\">Upgrade notes<\/a><\/li>\n<\/ul><\/div><div class=\"clear\"><\/div>\n\t\t\t<style>\n\t\t\t\t#short_menu_69eb44706bb63 {  }\n\t\t\t\t#short_menu_69eb44706bb63 ul.wpsm-arrow-enabled:before {  } \n\t\t\t\t#short_menu_69eb44706bb63 ul, #short_menu_69eb44706bb63 ul ul {  }\n\t\t\t\t#short_menu_69eb44706bb63 a {  }\n\t\t\t\t#short_menu_69eb44706bb63 a:hover {  }\n\t\t\t\t#short_menu_69eb44706bb63 ul a {  }\n\t\t\t\t#short_menu_69eb44706bb63 ul a:hover {  }\n\t\t\t\t\n\t\t\t<\/style>\n\t\t\t<script type=\"text\/javascript\">\n\t\t\t\tvar show_arrow = \"true\";var $sm = jQuery.noConflict();\n\t\t\t\t\tjQuery(function ($) {\n\t\t\t\t\t\t$(\"#short_menu_69eb44706bb63\").tinyNav();\n\t\t\t\t\t\t$(\"#short_menu_69eb44706bb63\").next().addClass(\"shortcode-menu-mobile\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tshortcode_menu_responsive();\n\t\t\t\t\t});\n\t\t\t\t\tjQuery(window).resize(function($){\n\t\t\t\t\t\tshortcode_menu_responsive();\n\t\t\t\t\t});\n\t\t\t\t\tfunction shortcode_menu_responsive()\n\t\t\t\t\t{\n\t\t\t\t\t\tvar window_width = $sm(window).width();\n\t\t\t\t\t\tif(window_width <= 650)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$sm(\"#short_menu_69eb44706bb63\").hide();\n\t\t\t\t\t\t\t$sm(\"#short_menu_69eb44706bb63\").next().show();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$sm(\"#short_menu_69eb44706bb63\").show();\n\t\t\t\t\t\t\t$sm(\"#short_menu_69eb44706bb63\").next().hide();\n\t\t\t\t\t\t}\n\t\t\t\t\t}<\/script>\n<h3>Upgrading projects from Unity 4<\/h3>\n<p>Unfortunately, the major changes in the physics in Unity 5 makes impossible to directly upgrade a\u00a0project\u00a0using Edy&#8217;s Vehicle Physics\u00a0in Unity 4 to work the same in Unity 5.<\/p>\n<p>New projects will be working from the beginning in Unity 5, but projects coming from Unity 4 require an important upgrade process at both scripts and vehicle configuration. Old scripts must be discarded and the vehicles must be re-configured for the new components and settings. The vehicle behavior and\u00a0gameplay need\u00a0to be configured and fine-tuned again.\u00a0However, the new package for Unity 5 has a much better design and vehicles can be composed and\u00a0configured much faster.<\/p>\n<h4>Importing Edy&#8217;s Vehicle Physics<\/h4>\n<ol>\n<li>Open your project in Unity 5 (make a backup first!). Wait for the upgrade process to be\u00a0completed.<\/li>\n<li>Open the Asset Store, download and import Edy&#8217;s Vehicle Physics. You&#8217;ll receive\u00a0the Unity 5 version.<\/li>\n<\/ol>\n<p>You can have both versions of Edy&#8217;s Vehicle Physics in your project at the same time. There might be some GUID collisions at the Assets, but the scripts use different naming and namespaces.<\/p>\n<ul>\n<li>Edy&#8217;s Vehicle Physics 4 is located at the folder EdyVehiclePhysics<\/li>\n<li>Edy&#8217;s Vehicle Physics 5 is imported to the folder EVP5<\/li>\n<\/ul>\n<h4>Upgrading the vehicles<\/h4>\n<p>All components of the previous EVP version must\u00a0be discarded. You may\u00a0keep them disabled in your vehicles while adding and configuring the new components. Some of the property values of the old components\u00a0may\u00a0be reusable in the new components.<\/p>\n<p>Some properties\u00a0in these\u00a0components can be used as reference for configuring the new ones:<\/p>\n<ul>\n<li>CamMouseOrbit, CamSmoothFollow<\/li>\n<li>CarDamage<\/li>\n<li>CarSettings<\/li>\n<li>CarSound<\/li>\n<\/ul>\n<p>The parameters of all other scripts have little to no equivalence in the new scripts.<\/p>\n<p>Script correspondence between version 4.x and version 5.x:<\/p>\n<table>\n<tbody>\n<tr>\n<th>EVP 4<\/th>\n<th>EVP 5<\/th>\n<th>Notes<\/th>\n<\/tr>\n<tr>\n<td>CameraControl<br \/>\nCamMouseOrbit<br \/>\nCamSmoothFollow<br \/>\nCam*&#8230;<\/td>\n<td><strong>VehicleCameraController<\/strong><\/td>\n<td>All camera modes\u00a0are now implemented\u00a0in this\u00a0single script<\/td>\n<\/tr>\n<tr>\n<td>CarAntiRollBar<\/td>\n<td><strong>&#8211;<\/strong><\/td>\n<td>Use the property\u00a0<em>Anti Roll<\/em>\u00a0in VehicleController<\/td>\n<\/tr>\n<tr>\n<td>CarCameras<\/td>\n<td><strong>VehicleViewConfig<\/strong><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>CarControl<\/td>\n<td><strong>VehicleController<\/strong><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>CarDamage<\/td>\n<td><strong>VehicleDamage<\/strong><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>CarExternalInput<\/td>\n<td><strong>&#8211;<\/strong><\/td>\n<td>Any custom script can drive\u00a0a vehicle<\/td>\n<\/tr>\n<tr>\n<td>CarExternalInputRandom<\/td>\n<td><strong>VehicleRandomInput<\/strong><\/td>\n<td>Example of a script that feeds the vehicle with random input data<\/td>\n<\/tr>\n<tr>\n<td>CarMain<\/td>\n<td><strong>VehicleManager<br \/>\nSceneTools<\/strong><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>CarSettings<\/td>\n<td>VehicleSettingsHelper<\/td>\n<td><em>(under development)<\/em><\/td>\n<\/tr>\n<tr>\n<td>CarSound<\/td>\n<td><strong>VehicleAudio<\/strong><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>CarTelemetry<\/td>\n<td><strong>VehicleTelemetry<\/strong><\/td>\n<td>Can be added to the VehicleManager object for using a common telemetry component for all managed vehicles.<\/td>\n<\/tr>\n<tr>\n<td>CarVisuals<\/td>\n<td><strong>VehicleTireEffects<\/strong><\/td>\n<td>Handles tire marks and particle effects (smoke, dust).<br \/>\nVisual wheels\u00a0are now handled directly in VehicleController.<\/td>\n<\/tr>\n<tr>\n<td>CarWheel<br \/>\nCarWheelFriction<\/td>\n<td><strong>&#8211;<\/strong><\/td>\n<td>WheelCollider settings and tire friction are processed in VehicleController.<\/td>\n<\/tr>\n<tr>\n<td>Skidmarks, SkidSmoke<\/td>\n<td><strong>GroundMaterialManager<br \/>\nTireMarksRenderer<br \/>\nTireParticleEmitter<\/strong><\/td>\n<td>GroundMaterialManager assigns properties to each\u00a0PhysicMaterial available at the scene.<br \/>\nEach material can use\u00a0a TireMarksRenderer and a TireParticleEmitter.<\/td>\n<\/tr>\n<tr>\n<td>&#8211;<\/td>\n<td><strong>VehicleStandardInput<\/strong><\/td>\n<td>New component\u00a0for controlling vehicles using the standard Input.<br \/>\nCan be used individually per-vehicle (VehicleController) or together with the VehicleManager component\u00a0for having the same\u00a0Input settings in all managed vehicles.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Scripts noted as <em>under development<\/em> will be added at\u00a0further package upgrades. Project is being developed right now for bringing all features of the previous version.<\/p>\n<p>Check out the <a title=\"Edy\u2019s Vehicle Physics \u2013 User Guide\" href=\"https:\/\/www.edy.es\/dev\/vehicle-physics\/user-guide\/\">User Guide<\/a>\u00a0for learning how to set up the vehicles in the new EVP version.<\/p>\n<p>Useful resources:<\/p>\n<ul>\n<li>The scene &#8220;The City &#8211; Simple Scene&#8221; demonstrates the most simple setup with a single vehicle and the camera.<\/li>\n<li>The scene &#8220;The City &#8211; Vehicle Manager&#8221; demonstrates how to use a Vehicle Manager object for controlling several vehicles using the same input component.<\/li>\n<\/ul>\n<h4>Configuring the WheelCollider components<\/h4>\n<p>You need to re-configure\u00a0suspension Spring and Damper, as these values have different meaning in Unity 5. A rough rule of thumb for preserving the behavior is:<\/p>\n<pre>spring = 4 * unity4spring\r\ndamper = 15 * unity4damper<\/pre>\n<p>Then fine tune these values until getting a similar behavior as in Unity 4. You can leave all other properties of the WheelCollider untouched.<\/p>\n<p>&nbsp;<\/p>\n<p>That&#8217;s pretty much all\u00a0I\u00a0can tell you about upgrading to\u00a0Unity 5. Feel free to <a href=\"mailto:edytado@gmail.com\">contact me<\/a> if you need further assistance.<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<h3>Old EVP4 resources<\/h3>\n<p>Archived documentation and resources from Edy&#8217;s Vehicle Physics for Unity 4:<\/p>\n<ul>\n<li><a title=\"Edy\u2019s Vehicle Physics gallery &amp; videos\" href=\"https:\/\/www.edy.es\/dev\/vehicle-physics\/videos\/\">Gallery &amp; Videos<\/a><\/li>\n<li><a title=\"Edy\u2019s Vehicle Physics live demo\" href=\"https:\/\/www.edy.es\/dev\/vehicle-physics\/live-demo\/\">Live web demo<\/a> (requires Unity plugin, might not be allowed in your browser)<\/li>\n<li><a title=\"Ferrari demo with Edy\u2019s Vehicle Physics\" href=\"https:\/\/www.edy.es\/dev\/vehicle-physics\/ferrari-demo\/\">Ferrari demo<\/a> (same)<\/li>\n<li><a href=\"http:\/\/projects.edy.es\/trac\/edy_vehicle-physics\/wiki\">Product documentation: guides, reference, tutorials<\/a><\/li>\n<li><a href=\"http:\/\/forum.unity3d.com\/threads\/120091-Edy-s-Vehicle-Physics-official-thread\">Setup, FAQ and forum support<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Upgrading projects from Unity 4 Unfortunately, the major changes in the physics in Unity 5 makes impossible to directly upgrade a\u00a0project\u00a0using Edy&#8217;s Vehicle Physics\u00a0in Unity 4 to work the same in Unity 5. New projects will be working from the beginning in Unity 5, but projects coming from Unity 4 require an important upgrade process [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":5,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-c.php","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-381","page","type-page","status-publish","hentry"],"jetpack_shortlink":"https:\/\/wp.me\/P1PjRF-69","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/pages\/381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/types\/page"}],"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=381"}],"version-history":[{"count":20,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/pages\/381\/revisions"}],"predecessor-version":[{"id":1526,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/pages\/381\/revisions\/1526"}],"up":[{"embeddable":true,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/pages\/5"}],"wp:attachment":[{"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/media?parent=381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}