{"id":696,"date":"2012-02-25T13:04:48","date_gmt":"2012-02-25T10:04:48","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=696"},"modified":"2013-08-15T22:20:42","modified_gmt":"2013-08-15T19:20:42","slug":"camera-panning","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2012\/02\/25\/camera-panning\/","title":{"rendered":"Camera Panning"},"content":{"rendered":"<p><a title=\"start webplayer demo\" href=\"http:\/\/unitycoder.com\/upload\/demos\/mCameraPanning1\/\" target=\"_blank\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"697\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2012\/02\/25\/camera-panning\/mcamerapan1\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/02\/mCameraPan1.jpg?fit=680%2C483&amp;ssl=1\" data-orig-size=\"680,483\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"mCameraPan1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/02\/mCameraPan1.jpg?fit=680%2C483&amp;ssl=1\" class=\"alignnone size-full wp-image-697\" title=\"mCameraPan1\" alt=\"\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/02\/mCameraPan1.jpg?resize=680%2C483\" width=\"680\" height=\"483\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/02\/mCameraPan1.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/02\/mCameraPan1.jpg?resize=300%2C213&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n<p>Testing camera pan (hold button down, pan view..)<br \/>\nActually the code is 99% from here: <a title=\"http:\/\/unitycoder.com\/blog\/2011\/12\/28\/angryspheres-test-1\/\" href=\"http:\/\/unitycoder.com\/blog\/2011\/12\/28\/angryspheres-test-1\/\" target=\"_blank\">Angry Spheres<\/a>..<\/p>\n<p><strong>Current features:<\/strong><br \/>\n&#8211; Pan with left mouse button (would be better with middle..or when holding space down)<br \/>\n&#8211; This is &#8220;global panning&#8221; (z is locked), not taking account the local camera rotation..<\/p>\n<p><strong>Ideas:<\/strong><br \/>\n&#8211; Inertia would be nice..<br \/>\n&#8211; Local pan?<br \/>\n<strong>Webplayer:<\/strong><br \/>\n<a title=\"http:\/\/unitycoder.com\/upload\/demos\/mCameraPanning1\/\" href=\"http:\/\/unitycoder.com\/upload\/demos\/mCameraPanning1\/\" target=\"_blank\">http:\/\/unitycoder.com\/upload\/demos\/mCameraPanning1\/<\/a><\/p>\n<p><strong>Download source:<\/strong><br \/>\n<a title=\"Download Source\" href=\"http:\/\/unitycoder.com\/download\/index2.php?link=200&amp;uid=un1t3c0d5r\" target=\"_blank\">CameraPanning.unityPackage<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Testing camera pan (hold button down, pan view..) Actually the code is 99% from here: Angry Spheres.. Current features: &#8211; Pan with left mouse button (would be better with middle..or when holding space down) &#8211; This is &#8220;global panning&#8221; (z is locked), not taking account [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":697,"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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[4,3],"tags":[185,87,184,186],"class_list":["post-696","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-demos","category-unity3d","tag-camera","tag-mouse","tag-pan","tag-panning"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/02\/mCameraPan1.jpg?fit=680%2C483&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-be","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/696","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=696"}],"version-history":[{"count":7,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/696\/revisions"}],"predecessor-version":[{"id":2319,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/696\/revisions\/2319"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/697"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}