<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rajesh Mohan on Medium]]></title>
        <description><![CDATA[Stories by Rajesh Mohan on Medium]]></description>
        <link>https://medium.com/@rajeshm?source=rss-4a513e79e0fd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*Rmw4E8zUbXWcEYiLDvEYDQ.jpeg</url>
            <title>Stories by Rajesh Mohan on Medium</title>
            <link>https://medium.com/@rajeshm?source=rss-4a513e79e0fd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 01:31:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rajeshm/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Designing a third-person camera movement controller in Unity — Part 1]]></title>
            <link>https://medium.com/zooming-in/designing-a-third-person-camera-movement-controller-in-unity-part-1-43a5f997f71b?source=rss-4a513e79e0fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/43a5f997f71b</guid>
            <category><![CDATA[gaming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[games]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Rajesh Mohan]]></dc:creator>
            <pubDate>Wed, 25 Mar 2020 04:12:20 GMT</pubDate>
            <atom:updated>2020-03-25T04:12:20.449Z</atom:updated>
            <content:encoded><![CDATA[<h3>Designing a third-person camera movement controller in Unity — Part 1</h3><p>Having played several third-person games growing up, the first thing I used to observe when I get control of the player was to do a full 360 look using the camera to see the environment and the player’s features.</p><p>I try to take in as much of the visual fidelity that the game offers and then start taking baby steps into moving my character.</p><p>Having looked at some of my favorite game series like Grand Theft Auto, Assassin’s Creed and so on, I am going to try to break down what goes on in those and try to achieve the same level of control in our script.</p><h3>Breaking it down…</h3><p>Let’s take a page out of Edward Kenway’s adventures in Assassin’s Creed : Black Flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*K_sJgkbZxy2oP5nVi_cB7A.gif" /><figcaption>Why do I stick out like a sore thumb!</figcaption></figure><h3><strong>Handling the Rotation</strong></h3><p>Here, the camera initially is at the same level as the character, with a small elevation. This is the default camera angle for most of the game.</p><p>If you use a controller, and hold the right stick to the left or right, the camera will go on a circular path with the player as the axis. Something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/0*KkryPVkGL6XnFCQI.gif" /></figure><p>The second type of rotation is seen below where the camera goes above the character’s head. This is very useful when you have a vertical elements in your level design, much like this where the character can jump down and assassinate an enemy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*P082y-UirUF0LsKFrasalg.gif" /><figcaption>Ahoy Matey!</figcaption></figure><p>Combining the two pieces of rotation, we get a spherical area of motion for the camera.</p><p>Now that we have observed the types of motion of the camera, let us try to map that to the actions we can do in Unity.</p><p>As per my previous post of <a href="https://medium.com/zooming-in/wanna-feel-like-a-ps4-developer-1d9fc85df0ee">using the PS4 controller</a>, I have mapped the Right Analog stick’s X and Y axes in the Input Manager and I am going to use that to control the camera movements.</p><p>Initially I placed the camera at a certain distance from my character that I seemed to like.</p><p>Now, the heavy lifting of doing the math of calculating the radius and updating the position of the camera when it moves around our character has been abstracted to the <strong>transform.RotateAround() </strong>function which takes in three arguments (Note: There is another version of the same function that is deprecated and takes in only two arguments.). The three arguments are as follows:</p><ol><li><strong>The point around which to rotate.</strong> In our case it is the position of the character.</li><li><strong>The axis of rotation.</strong> For horizontal rotation you need to use the global upward vector and for vertical rotation, local right axis. The reason is that the character can rotate by itself and this will change the axis along which the camera will rotate.</li><li><strong>The angle of rotation</strong>. This is basically how much to rotate by. Our inputs will return either positive or negative based on the direction you push the analog stick in and the rotation speed gives the magnitude of the angle.</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/75c4a6825bf64543c87f17a43b2c73e8/href">https://medium.com/media/75c4a6825bf64543c87f17a43b2c73e8/href</a></iframe><p>The function updateCamRotation is called in Update() function.</p><p>The result looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gBLd3u3HbzzS5UYtNCgktg.gif" /></figure><p>In the next part, we shall see how to move the camera in tandem with the object along with a few improvements and additions to this base system.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43a5f997f71b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zooming-in/designing-a-third-person-camera-movement-controller-in-unity-part-1-43a5f997f71b">Designing a third-person camera movement controller in Unity — Part 1</a> was originally published in <a href="https://medium.com/zooming-in">Zooming In</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wanna feel like a PS4 developer?]]></title>
            <link>https://medium.com/zooming-in/wanna-feel-like-a-ps4-developer-1d9fc85df0ee?source=rss-4a513e79e0fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d9fc85df0ee</guid>
            <category><![CDATA[games]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[unity]]></category>
            <dc:creator><![CDATA[Rajesh Mohan]]></dc:creator>
            <pubDate>Sun, 22 Mar 2020 04:41:05 GMT</pubDate>
            <atom:updated>2020-03-25T01:53:07.411Z</atom:updated>
            <content:encoded><![CDATA[<h3>Want to feel like a PS4 developer?</h3><p>WASD gamers may not like this but, after my not so recent purchase of a limited edition Death Stranding PS4 Pro, controller is definitely the way to go!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zF3zbSaUMHwj_Lzsi6CcHQ.jpeg" /><figcaption>Kojima likes this activity</figcaption></figure><p>As I was setting up a basic scene to build movement controls in Unity, I got a brain wave of using the PS4 controller to move my flair-filled cube.</p><h3>The Connection</h3><p>The trick to connecting the controller is to <strong>hold down Share + PS buttons</strong> for a few seconds to trigger Bluetooth Pairing. Open up the Bluetooth menu on Mac and voila, it shows up there and is ready to be connected!</p><h3>Mapping buttons in Unity</h3><p>I started off moving the cube like any sane person with the left analog and it worked incredibly well! But the gamer in me wanted to accelerate the cube’s movement and I ended up pressing R2 which obviously has not been mapped yet.</p><p>So here’s a guide I obtained from <a href="https://www.reddit.com/r/Unity3D/comments/1syswe/ps4_controller_map_for_unity/">Reddit</a> (Thanks to u/drakfyre):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5LugXKd6AO-YKTCOIdfJYQ.png" /><figcaption>So many Axes! Timberrrrrrrrrrr!</figcaption></figure><p>Using this as a guideline, let’s map these to our Unity environment. Head over to</p><p><strong>Edit &gt; Project Settings &gt; Input Manager</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_CHwhwTpaCOIdpUt03t-4Q.png" /><figcaption>Mapping the Right Analog stick</figcaption></figure><p>Add an input to the existing list by increasing the Axes count on top.</p><p>Then modify the setting for each unmapped button on the controller as I have done in the example for the Right Analog stick.</p><p>You are all set to begin development with the PS4 controller!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d9fc85df0ee" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zooming-in/wanna-feel-like-a-ps4-developer-1d9fc85df0ee">Wanna feel like a PS4 developer?</a> was originally published in <a href="https://medium.com/zooming-in">Zooming In</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The aftermath of Microsoft’s presentation]]></title>
            <link>https://medium.com/@rajeshm/the-aftermath-of-microsoft-s-presentation-171bc287f55?source=rss-4a513e79e0fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/171bc287f55</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[windows-10]]></category>
            <category><![CDATA[microsoft]]></category>
            <dc:creator><![CDATA[Rajesh Mohan]]></dc:creator>
            <pubDate>Fri, 09 Oct 2015 02:31:37 GMT</pubDate>
            <atom:updated>2015-10-09T02:31:37.158Z</atom:updated>
            <content:encoded><![CDATA[<p>With the launch of Windows 10 worldwide, the OS has come to pass into our daily lives with great significance. If you think about it, the number of PCs greatly outweigh the number of Macs and this fact will not change in the near future.</p><p>To keep this trend going and to please their beloved shareholders, Microsoft had to come up with something radical to hit it home. Microsoft’s keynote proves that they are on the journey to conquer the world. We had a “pumped up” Panos Panay, the man behind Surface tablets, giving out that presentation with such panache. This was beautiful to watch and certainly deserved a standing ovation. Once Satya Nadella came back to deliver the last word, we came to know the grand scheme behind all of this; to make things for people who make things and to help them make it better than before. Now, this may sound simple but something lies beneath this statement.</p><p>The vision that Nadella put out displays that the company is focused on empowering the next billion people on the planet. And how are they going to do this? By putting a continuum of hardware in our daily lives, Microsoft can now control and read how each person functions. Be it through your mobile phone or your loveable fitness band, they know you now and what makes you tick. One could argue that Google also has the same control over us but, it is of a soft nature as it involves only software for the major part. Microsoft seems to believe that ‘soft&#39; control is not the only route to success. They want to have a balance of both hardware and software to power the inhabitants of this world. The future is filled with several possibilities and Microsoft has to choose the path that either utilizes disruption or harmonise with the other big players. The latter seemed to be the case initially, but now the former seems to have come up in the race.</p><p>Nadella wants to gain the love of the people. Once this love happens, there is no looking back.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=171bc287f55" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>