{"id":1546,"date":"2016-01-16T02:18:47","date_gmt":"2016-01-16T01:18:47","guid":{"rendered":"http:\/\/www.edy.es\/dev\/?p=1546"},"modified":"2017-02-16T10:51:04","modified_gmt":"2017-02-16T09:51:04","slug":"vehicle-physics-pro-enters-the-beta-stage","status":"publish","type":"post","link":"https:\/\/www.edy.es\/dev\/2016\/01\/vehicle-physics-pro-enters-the-beta-stage\/","title":{"rendered":"Vehicle Physics Pro enters the Beta stage!"},"content":{"rendered":"<p><a href=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2016\/01\/2016-01-15_132639_1200.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1561 alignright\" src=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2016\/01\/2016-01-15_132639_1200-300x163.jpg\" alt=\"Vehicle Physics Pro Beta\" width=\"300\" height=\"163\" srcset=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2016\/01\/2016-01-15_132639_1200-300x163.jpg 300w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2016\/01\/2016-01-15_132639_1200-1024x556.jpg 1024w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2016\/01\/2016-01-15_132639_1200.jpg 1200w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>I&#8217;ve spent the past weeks\u00a0working intensely on organizing\u00a0files, refactoring code and writing documentation for moving\u00a0VPP to the Beta stage.\u00a0The project is already mature and bug-free enough to be used in actual projects. Only some features are yet to be developed. Main code is not expected to have significant changes during the Beta phase.<\/p>\n<p><strong>Early Access<\/strong> to Vehicle Physics Pro Beta is still available with the Professional and Enterprise licenses. Check out the <a href=\"http:\/\/vehiclephysics.com\/about\/licensing\">Licensing page<\/a> for more information.<\/p>\n<p>Check out the <a href=\"http:\/\/vehiclephysics.com\">updated documentation site<\/a> for an outlook on the features and\u00a0improvements in Vehicle Physics Pro Beta. The new <a href=\"http:\/\/vehiclephysics.com\/user-guide\/getting-started\">Getting Started<\/a> page is\u00a0a quick tour on the features and usage of VPP.<\/p>\n<h3>Upgrading existing projects\u00a0to Beta stage<\/h3>\n<p>Early Access users, this is of interest to you!<\/p>\n<p>If your scenes\u00a0use\u00a0the provided components only, then changes won&#8217;t likely affect you. Some classes and properties have changed its name, but the properties will conserve their serialized values. Just fetch\u00a0and checkout the <em>master<\/em> branch from the repository and everything should work without errors.<\/p>\n<p>If you are accessing VPP components via scripting,\u00a0or extending VPP with your custom components, blocks or controllers, then you will surely receive a lot of errors when checking out the master branch.\u00a0Review the following change list\u00a0and verify\u00a0the reported errors for the proper corrections. As always, feel free to contact me at edy@vehiclephysics.com or <a href=\"https:\/\/twitter.com\/VehiclePhysics\">@VehiclePhysics<\/a> if you encounter any problem.<\/p>\n<h4>New VehiclePhysics namespace<\/h4>\n<p>Classes in VPP now belong to the namespace <strong>VehiclePhysics<\/strong>.\u00a0When referencing VPP\u00a0classes, you should add <strong>using VehiclePhysics;<\/strong> at the top of your\u00a0scripts.<\/p>\n<p>This doesn&#8217;t apply to the exposed Unity components such as VPVehicleController, VPWheelCollider, etc. These conserve the\u00a0VP prefix in their class names at the root namespace.\u00a0The reason is that Unity doesn&#8217;t support menu entries for components included in\u00a0a custom namespace.<\/p>\n<h4>Functional blocks and custom vehicles<\/h4>\n<p>The concept of <em>Component<\/em>\u00a0as parts of the powertrain, such as engine or gearbox, is now named <strong><em>Block<\/em><\/strong>. Old prefixes &#8220;VP&#8221; and &#8220;VPC&#8221; are now removed, as the blocks deriving from VehiclePhysics.Block and other classes are now defined under the namespace VehiclePhysics as well. This removes the ambiguity among the &#8220;vehicle components&#8221; and the standard Unity components.<\/p>\n<pre style=\"padding-left: 30px;\">VPComponent --&gt; VehiclePhysics.Block\r\nVPVehicleBase --&gt; VehiclePhysics.VehicleBase\r\nVPWheel --&gt; VehiclePhysics.Wheel<\/pre>\n<pre style=\"padding-left: 30px;\">VPCEngine --&gt;\u00a0VehiclePhysics.Engine\r\nVPCGearbox --&gt; VehiclePhysics.Gearbox\r\nVPCDifferential --&gt; VehiclePhysics.Differential\r\n...<\/pre>\n<p>The method DoUpdateComponents of VehicleBase has been renamed as well:<\/p>\n<pre style=\"padding-left: 30px;\">VPVehicleBase.DoUpdateComponents() --&gt;\u00a0VehiclePhysics.VehicleBase.DoUpdateBlocks()<\/pre>\n<h4>Other refactored names<\/h4>\n<p>The classes\u00a0and properties\u00a0for &#8220;Transmission&#8221; are now named Driveline, as it fits better with the intended usage.<\/p>\n<p>Some properties have changed their name. They will still receive the serialized settings for the previous ones, but if you are accessing these properties from scripting you will receive an error. Simply find out the new name in the VPP code\u00a0and adopt it in your code.<\/p>\n<p>Some definitions and properties that have changed:<\/p>\n<pre style=\"padding-left: 30px;\">ClutckPack --&gt; DiscFriction (clutch type)\r\nTireFriction.Type --&gt; TireFriction.Model\r\nVPVehicleController.transmission\u00a0--&gt;\u00a0VPVehicleController.driveline\r\nVPStandardInput.unlockTransmissionOnHandbrake --&gt;\u00a0VPStandardInput.unlockDrivelineOnHandbrake\r\nCameraMode.MouseOrbit --&gt; CameraMode.Orbit\r\nVPCameraTargetConfig --&gt; VPCameraTargetSetup<\/pre>\n<h4>Other changes<\/h4>\n<p>The <a href=\"http:\/\/vehiclephysics.com\/components\/vehicle-debug\/#vptelemetry\">VPTelemetry GUI<\/a>\u00a0is easier to configure: only the <em>Font<\/em> is required now (no GUIStyles anymore). New instances\u00a0will have\u00a0VeraMono configured\u00a0by\u00a0default, but the existing instances of VPTelemetry will surely require you to configure the <em>Font<\/em>\u00a0manually.\u00a0The recommended font is VeraMono.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve spent the past weeks\u00a0working intensely on organizing\u00a0files, refactoring code and writing documentation for moving\u00a0VPP to the Beta stage.\u00a0The project is already mature and bug-free enough to be used in actual projects. Only some features are yet to be developed. Main code is not expected to have significant changes during the Beta phase. Early Access [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1557,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_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-1546","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\/2016\/01\/2016-01-15_132349_cr_640x300.jpg","jetpack_shortlink":"https:\/\/wp.me\/p1PjRF-oW","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/posts\/1546","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=1546"}],"version-history":[{"count":13,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/posts\/1546\/revisions"}],"predecessor-version":[{"id":1564,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/posts\/1546\/revisions\/1564"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/media\/1557"}],"wp:attachment":[{"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/media?parent=1546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/categories?post=1546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/tags?post=1546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}