{"assets":[{"original":"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2013\/05\/zzzzz.png","local":"\/data\/posts\/2013\/05\/300aeadf970fd8932c1e9f5901be711e.png"}],"author_link":"author\/bentog\/","author_name":"bentog","cat":"LD #26","categories":["LD #26"],"comments":[],"epoch":1367411460,"event":"LD26","likes":28,"metadata":{"p_key":"80624","p_author":"bentog","p_authorkey":"0","p_urlkey":"289741","p_title":"For Unity users: Stop using the standard Character Controller!","p_cat":"LD #26","p_event":"LD26","p_time":"1367411460","p_likes":"28","p_comments":"0","p_status":"WAYBACK","us_key":null,"us_name":null,"us_username":null,"event_start":"1366934400","event_key":"16","event_name":"LD26"},"source_url":"2013\/05\/01\/for-unity-users-stop-using-the-standart-character-controller\/","text":"<p>Hello there everyone, it has been a very good Ludum Dare. But the only thing I was disappointed about is the amount of people that use the First Person Character Controller prefab from Unity\u2019s Standard Assets. So, I\u2019ve listed some reasons why you should not use it.<\/p>\n<div class=\"wp-caption aligncenter\" id=\"attachment_254197\" style=\"width: 392px\"><a href=\"http:\/\/www.ludumdare.com\/compo\/2013\/05\/01\/for-unity-users-stop-using-the-standart-character-controller\/zzzzz\/\" rel=\"attachment wp-att-254197\"><img alt=\"Evilness at its best.\" class=\"size-full wp-image-254197\" height=\"340\" sizes=\"(max-width: 382px) 100vw, 382px\" src=\"\/data\/posts\/2013\/05\/300aeadf970fd8932c1e9f5901be711e.png\" srcset=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2013\/05\/zzzzz-300x267.png 300w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2013\/05\/zzzzz.png 382w\" width=\"382\"\/><\/a><p class=\"wp-caption-text\">At LD #25 YOU were the villain. Now THIS is the villain!<\/p><\/div>\n<p><strong>1. Standard MouseLook is buggy and horrible.<\/strong><\/p>\n<p>The standart MouseLook script is terrible and should not be used. First, it is imprecise. For some reason, a minor movement makes a glitchy hop to another direction, I don\u2019t really know why. Also, the standardsensibility is too great. Sensibility should be configurable by the player.<\/p>\n<p>\u00a0<\/p>\n<p><strong>2. Your player cannot be a physical object.<\/strong><\/p>\n<p>With the standardCharacter Controller, you are not a physical object. If you add a rigidbody component to it, things get buggy. It\u2019s no use. The movement script makes the physics by itself, and the physics are unrealistic. The acceleration is off and I don\u2019t even know what else. Try adding force to yourself, it is impossible since you are not a physical object.<\/p>\n<p>\u00a0<\/p>\n<p><strong>3. You don\u2019t do the scripts.<\/strong><\/p>\n<p>So, how can you adjust anything on the scripts that come with it if you don\u2019t know how they were done and why they were done that way? The answer is simple: you don\u2019t. Make your own first person walking and MouseLook script, it\u2019s easier than you think, you\u2019ll learn a lot about scripting and you will actually understand what\u2019s going on, you will be able to tune the movement in the way you like it.<\/p>\n<p>\u00a0<\/p>\n<p>So, do your own basic scripts, it is good for you. If you have trouble with that, check out <a href=\"http:\/\/pastebin.com\/111UHFWR\" title=\"my scripts\">my Movement.js and Mouselook.js scripts<\/a> \u00a0(they are not perfect) and take a look at <a href=\"http:\/\/wiki.unity3d.com\/index.php?title=RigidbodyFPSWalker\">RigidbodyFPSWalker<\/a>. And <strong>good luck!<\/strong><\/p>","time":"May 1st, 2013 12:31 pm","title":"For Unity users: Stop using the standard Character Controller!","title_was_empty":false}