I'm trying to make a game where you control a character via touch on Android devices.  The player will have two degrees of movement.   When you touch the touch screen and move your finger, the game object should move to your finger's location and follow your finger as you move it.  Here is an example of what I'm trying to do:  (@ 1:02).  I already know I need to use Input.touches.  I've tried using Transform.translate and Vector3.Lerp, neither gave me the results I wanted.   Here is some of the code I've tried using:  #pragma strict  var speed : float = 1;  function Start () {  }  function Update () {     if (Input.touchCount &gt; 0 &amp;&amp;          Input.GetTouch(0).phase == TouchPhase.Moved) {           // Get movement of the finger since last frame         var touchDeltaPosition:Vector2 = Input.GetTouch(0).deltaPosition;          var touchPosition:Vector3;          touchPosition.Set(touchDeltaPosition.x,                             transform.position.y,                             touchDeltaPosition.y);           // Move object across XY plane         transform.position = Vector3.Lerp(transform.position,                                                 touchPosition,                                                  Time.deltaTime*speed);     }  }
I am trying to create a 3d game in unity. I have a cube in unity and I want it to move left or right on swipe . It should move to a distance till where user swipe or take their finger off of a screen. I want it to move fast or the cube should move fast on swipe and cube should flow smooth. Like in the gif there is a circle and the user use their finger to move the circle till wherever the user swipe it and it should be instant and I want my cube to move like that at a distance till where user swipe their finger and it should be instant and fast.  I don't know how to do it. Any help is appreciated!
How to apply a modifier in V2.9+ Why I can't apply mirror modifier? Here's screen Is the Ministry of Magic unable to detect illegal time-tampering? Since Hermione already admitted that they were breaking the Law. Would it be safe to conclude that the Ministry cannot instantly (by magic) detect illegal time-tampering?  (Both before and during the events of Prisoner of Azkaban.)     “Hermione,” said Harry suddenly, “what if we — we just run in    there and grab Pettigrew —”       “No!” said Hermione in a terrified whisper. “Don’t you understand?    We’re breaking one of the most important wizarding laws!    Nobody’s supposed to change time, nobody! You heard Dumbledore,    if we’re seen —”       — Prisoner of Azkaban, chapter 21 (Hermione’s Secret) With $x+y\ge z$ $(x,y,z\ge0)$, prove that: $$\frac{x}{1+x}+\frac{y}{1+y}\ge\frac{z}{1+z}$$  I'm aware that using analytic view this is easy since $f(x)=\frac{x}{1+x}$ is concave in $[0,\infty)$. However I want to prove it using merely algebraic techniques. Is that possible? If $z_n \to z$ then $(1+z_n/n)^n \to e^z$ We are dealing with $z \in \mathbb{C}$. I know that $$ \left(1+ \frac{z}{n} \right)^n \to e^{z} $$ as $n \to \infty$. So intuitively if $z_n \to z$ then we should have $$ \left(1+ \frac{z_n}{n} \right)^n \to e^{z}. $$ If $z_n \in \mathbb{R}$ I would be happy writing $$ \exp \left(n \log\left(1+ \frac{z_n}{n} \right) \right) = \exp \left(z_n \frac{\log\left(1+ \frac{z_n}{n} \right)-\log(1+0)}{\frac{z_n}{n}-0} \right) \to \exp(z \cdot 1) $$ where here we are using the definition of derivative. But if $z \in \mathbb{C}$ the logarithm is multivalued and I'm not sure that the same calculation is allowed. Is there a different way to show this for complex $z$? Communicating with all potential clients as a multi niche photographer This may be seen as a bit off topic, but I'm hoping it's a question that some photographers can associalte with and clear up for me.  I'm an amateur wanting to get more serious in the new year, and aiming to build up a portfolio of work that I will showcase on my own website, which will hopefully build up a client base.  I figured that a good way to get started would be to create a few 365 style projects that I can publish on my site and on social media. However, my interests vary a great deal, and therefore my photography will more than likely range from nature and local events, to more NSFW style topics.  My problem is, how to successfully communicate with people who will be interested in certain aspects of my work, without losing touch with those interested in others.  In theory, I'd like to set up a single social media presence, preferably Twitter, where I can freely post anything I want, and connect with anyone I want. Essentailly pointing people in the direction of whatever content they will be interested in. Problem is, social media sites like Twitter publicise ALL of your posts to ALL of your followers, so people who are following for nature/local photography will possibly unfollow me for my NSFW content. At the same time, some SFW followers may be potential clients in other areas, and vice versa.  So as a multi niche photographer, how can you engage with all potential clients, and showcase all portfolio peices ( in my case all 365 project shots ) via a single or limited number of social networks? How are you doing it? Show that the dual space of the vector space of all polynomials is isomorphic to the infinite-dimensional Euclidean vector space over the reals May I please ask how to show the dual space of the vector space of all polynomials is isomorphic to the infinite-dimensional Euclidean vector space over the reals?  (i.e. Show that $(\Bbb{R}[X])^*$ and $\Bbb{R}^{∞}$ are isomorphic where $\Bbb{R}$ means the set of all reals) Suppose you have a group isomorphism given by the first isomorphism theorem: $$G/\ker(\phi) \simeq \operatorname{im}(\phi)$$ What can we say about the group $\ker(\phi)\times \operatorname{im}(\phi)$? In particular, when does the following hold: $$G\simeq \ker(\phi)\times \operatorname{im}(\phi)?$$ I ask this question because i want to prove that $GL_n^+(\mathbb{R}) \simeq SL_n(\mathbb{R}) \times \mathbb{R}^*_{&gt;0}$, with $GL_n^+(\mathbb{R})$ the group of matrices with positive determinant. I proved that $SL_n(\mathbb{R})$ is a normal subgroup and that $GL_n^+(\mathbb{R})/  SL_n(\mathbb{R}) \simeq \mathbb{R}^*_{&gt;0}$, using the surjective homomorphism $\det(M)$. I tried something with semidirect products but I got stuck. "What have you tried" epidemic Statistics  () In Q1 of 2012 - 0.0134 such comments per question (~1.33%) In Q2 of 2012 - 0.0167 such comments per question (~1.66%) In Q3 of 2012 - 0.0169 such comments per question (~1.68%) In Q4 of 2012 - 0.0193 such comments per question (~1.92%) In Q1 of 2013 - 0.0223 such comments per question (~2.22%)  The vast majority of these questions need serious help.  Unfortunately, there is a growing trend towards abuse Along with the good, comes some bad -- as usual in life. These comments are bad when  Posting &quot;what have you tried&quot; multiple times per question is severely obnoxious Posting &quot;what have you tried&quot; when the user has clearly shown that they have tried to solve it on their own  It is becoming increasingly common to see &quot;what have you tried?&quot; comments in these scenarios. Some examples     Workarounds Flagging Comments - It is considered a good thing to be liberal with comment flagging -- that helps us clean up after the fact. &quot;Too Chatty&quot; is a no-brainer here. Unfortunately, that only cleans up after the damage has been done. All signs point toward the continued increase of the trend of using &quot;what have you tried&quot; comments. I spend a lot of time editing and cleaning up bad questions. This trend came up on my radar toward the end of last year and it is getting worse. So, I thought at the very least that I'd raise some awareness. Which of these two is more correct and why?   The sun shines on my little tree. The sun shines upon my little tree.   From what I've read in dictionaries both are acceptable, however I would like to know if there are subtleties that might arise due to, for example, the context. When to use \LetLtxMacro? Frequently I see users redefine macros using (for example)  \let\oldmacro\macro% Store \macro in \oldmacro \renewcommand{\macro}{%   % ...redefined \macro   \oldmacro% }   and other times they use  \usepackage{letltxmacro}% http://ctan.org/pkg/letltxmacro \LetLtxMacro{\oldmacro}{\macro}% Store \macro in \oldmacro \renewcommand{\macro}{%    % ...redefined \macro   \oldmacro% }   Why would one use \LetLtxMacro when \let works just as well? Or, more specifically, when would one use \LetLtxMacro and/or why? Does Stack Exchange have an Economics section? I bought a rtl8811au chipest based usb wifi for my work stationd that supports dual band. But when I plugged in the usb my ubuntu doesn't recognized it. So I had to find the driver and compiled it 'cause the one inside the usb package was not compatible with the last kernel version.  My experience with some drivers get from github platform was unsatisfied.  All the drivers I tested are an issue in my user experience. It seems that, with these drivers, my wifi usb stops working randomly, specially when the browser is open and it loads some javascript.   In that context the ping command works normally and all the other connections such as p2p like torrent, or app like telegram.  When that issue shows up, I have some options:   Waiting to work again with do nothing Unplug and replug the usb dongle Restart network service or turn off and turn on wifi   With all these options I have to wait and it is so heartbreaking !  So I think that the problem is relative to the driver 'cause I get it from github and it can contain some error.  I tried drivers like:         and the problem still persists on all these drivers.  Do you know some driver that works properly ? Is abstract algebra (mostly?) restricted to $2$-ary operators? This may be due to my own pure ignorance but it's my experience that all abstract algebra I've been introduced to, both in actual courses and in self-studies only exclusively deals with algebraic objects consisting of a set together with one or more binary operators defined on that set, perhaps over some other algebraic structure. Not counting categories here, just "low-level"-ish stuff.  I'm an undergraduate so my knowledge is of course very limited but I can't help to wonder why I never stumble upon algebraic structures with $n$-ary operators? Is there a good reason for this, something along the lines of $n$-ary operators behave "badly" when $n&gt;2$ or is it just my ignorance because I'm a beginner in the field? Replacing some characters in the previous command What exactly do the colors in htop status bars mean? Ubuntu Detects 2 monitors when I only have one Convert String to Integer in QGIS tables How disk space is used on Android device? I have critical low storage level and can't understand what takes much of it and how that's possible that the installed applications can use 7 GB? I only use a few social media clients without any games or soft like Photoshop. Also on the second screenshot it indicates that the apps are using just 1.13 GB and so I can't understand the situation. Also what is the "Other"? Editing capabilities document in GeoServer I've got several layers in GeoServer, one of which I'm trying to use as a WMS in desktop programs (Manifold 8). I've set it up correctly, but whenever I bring it into Manifold, it projects the layer into EPSG:4326, which unfortunately can't work with my map - I need it in EPSG:3857. The layer in question is wrapped inside a more overarching layer definition, which contains all the layers - and coordinate systems that allow them all to be used flexibly. However, I want to put this layer on its own in the capabilities document, and only allow it to use EPSG:3857. How, in GeoServer, would I edit, or override, a capabilities document? Open local folder from link