I added some screenshots above. When I run the game obstacle are falling rapidly through y axis. So, there's no more obstacle in that ground. If there's ground than those obstacle should stopped. I tried by freezing them. But, when another object hit them they are froze. So, I want ground to stop them. I have another question also. I have player movement. When I will run the program. The Player should be go through z axis. But, The object(player) don't move. PlayerMovement.cs using UnityEngine;  public class PlayerMovement : MonoBehaviour {     public Rigidbody rb;      public float forwardForce=2000f;           void FixedUpdate()     {         rb.AddForce(0,0,forwardForce * Time.deltaTime);         if(Input.GetKey(&quot;d&quot;)){             rb.AddForce(30 * Time.deltaTime,0,0, ForceMode.VelocityChange);         }else if(Input.GetKey(&quot;a&quot;)){             rb.AddForce(-30 * Time.deltaTime,0,0, ForceMode.VelocityChange);            }                     if(!Input.touchSupported)         {             // Still support PC keys             if(Input.GetKey(KeyCode.D))             {                 rb.AddForce(30 * Time.deltaTime,0,0, ForceMode.VelocityChange);             }             else if(Input.GetKey(KeyCode.A))             {                 rb.AddForce(-30 * Time.deltaTime,0,0, ForceMode.VelocityChange);                }         }         else         {             // For touch devices             if(Input.touchCount == 1)             {                 var touch = Input.GetTouch(0);                 var touchPos = touch.position;                              var isRight = touchPos.x &gt;= Screen.width / 2f;                              if(isRight)                 {                     rb.AddForce(30 * Time.deltaTime,0,0, ForceMode.VelocityChange);                 }                 else                 {                     rb.AddForce(-30 * Time.deltaTime,0,0, ForceMode.VelocityChange);                    }             }         }             if(Physics.Raycast(transform.position,Vector3.down,0.5f)==false){             // rb.velocity = new Vector3(0, rb.velocity.y, 0);             rb.constraints = RigidbodyConstraints.FreezePositionZ;         }else{             rb.constraints = RigidbodyConstraints.None;         }          if(rb.position.y &lt; -1f){             FindObjectOfType&lt;GameManager&gt;().EndGame();         }     } }  PlayerCollision.cs ﻿using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement;  public class PlayerCollision : MonoBehaviour {          public PlayerMovement movement;      void OnCollisionEnter(Collision collisionInfo)     {         Debug.Log(collisionInfo.collider.name);         if (collisionInfo.collider.tag == &quot;obstacle&quot;)         {             movement.enabled = false;             FindObjectOfType&lt;GameManager&gt;().EndGame();         }else if(collisionInfo.collider.name == &quot;END&quot;){             FindObjectOfType&lt;GameManager&gt;().CompleteLevel();         }     }     void Restart(){         SceneManager.LoadScene(SceneManager.GetActiveScene().name);     } }   If you look at above source code clearly. So, you might see that I have a Debug.Log right there. But, when I run the game. I don't get any message to console. As a new game developer(learning) I don't know what's happening, what's wrong with this.
As you can see, objects are falling down when I run the game. Ground is unable to stop those obstacles. Obstacles are rapidly traveling through y axis. I tried by freezing y axis. And, unchecked Use Gravity. I tried by checking Is Kinematic also. But, if I freeze y axis. Than, obstacles completely freeze through y. If there was no ground than the objects don't fall. Same thing happen when I unchecked Use Gravity. I want those obstacles to move if Player hit them. How to stop those obstacles from falling down?   Info :
Xubuntu 18.04 Persistent Live USB: Will persistence be carried upon full installation to a machine? I've created an Xubuntu 18.04 persistent live USB stick and installed several softwares for web development, such as XAMPP, Sublime Text 3, Google Chrome, etc.. I did some configurations as well in the ~/.bashrc file.  I am wondering if these installation and configuration in my persistent live USB stick be carried over in a full installation in to a new machine using it. Is it easy to enter the UK multiple times on the same Business Visitor Visa? I got a business visitor visa, sponsored by a company, for a 4-5 day visit. The visa was provided for a period of 6 months, with multiple entry possible.   First, what should I carry with me when entering the UK (at LHR)? Will they just take a look at my visa and let me in, or will I have an interview or something? (I haven't seen indication that I should carry documents or anything with me, but I thought I'd ask).  Second, if I want to re-enter the UK in a month or two (not for a business purpose), can I do that on the same visa, since it's multiple entry? Or is the second entry different than the first (i.e. if the first doesn't have an interview, they'll have an interview on the second entry?) List the files accessed by a program time is a brilliant command if you want to figure out how much CPU time a given command takes.  I am looking for something similar that can list the files being accessed by a program and its children. Either in real time or as a report afterwards.  Currently I use:  #!/bin/bash  strace -ff -e trace=file "$@" 2&gt;&amp;1 | perl -ne 's/^[^"]+"(([^\\"]|\\[\\"nt])*)".*/$1/ &amp;&amp; print'   but its fails if the command to run involves sudo. It is not very intelligent (it would be nice if it could only list files existing or that had permission problems or group them into files that are read and files that are written). Also strace is slow, so it would be good with a faster choice. I was tasked to prove that when given 2 graphs $G$ and $\bar{G}$ (complement), at least one of them is a always a connected graph.  Well, I always post my attempt at solution, but here I'm totally stuck. I tried to do raw algebraic manipulations with # of components, circuit ranks, etc, but to no avail. So I really hope someone could give me a hint on how to approach this problem. Locate the ".Rprofile" file generating default options Why is the minimum size of a generating set for a finite group at most $\log_2 n$? It seems to be known that the minimum size of a generating set for a finite group of order $n$ is at most $\log_2 n$. Can someone explain why this is true?  Edit: noted that the logarithm is base 2, and $n$ represents the order of the group. I created a new profile for gnome-terminal and I can switch between &quot;Implicit&quot; profile and the new created profile as you can see in the below image:  Now I wonder how can I switch between profiles using a command-line/script or maybe using a shortcut for this.  Note: Solutions like: gnome-terminal --tab-with-profile=Implicit &amp;&amp; exit   are excluded because I prefer not to close and open another terminal or get another terminal window in this process of changing the profile. Boot Error - ACPI PCC Probe Failed ACPI PCC Probe Failed is the error that pops up instead of the default GRUB loader after I updated my kernel to 3.19.  I searched around and couldn't find much information except that it is a known error and it is registered in kernel.org's launchpad . My question is, is anyone else facing it?, what are the impacts of this? And if only an update in the future can fix it, any suggestions or safety tips till then? Best book of topology for beginner? I am a graduate student of math right now but I was not able to get a topology subject in my undergrad... I just would like to know if you guys know the best one.. How does the Eco-Cooler air conditioner really work? describes a device for developing countries which apparently cools the air by 5 °C without electricity. According to , it works by lowering the pressure to drag in the ambient air. Wouldn't the ambient air be at the same temperature?  Does the constriction compress the air and temporarily increase the pressure and so temperature, which then dissipates heat because it is hotter than surroundings; then after passing the constriction, the pressure returns to almost ambient but the temperature drops to below ambient?  How does the Eco-Cooler air conditioner actually work, if at all? I'm currently passing the pid on the command line to the child, but is there a way to do this in the Win32 API?  Alternatively, can someone alleviate my fear that the pid I'm passing might belong to another process after some time if the parent has died? The energy stored in a capacitor is $$ U= \dfrac{1}{2} CV^2 $$    So when I have a 1F supercap charged to 1V the energy is 0.5 J. When I connect a second supercap, also 1F in parallel the charge will distribute and the voltage will halve. Then    $$ U = \dfrac{1}{2} 2F (0.5V)^2 = 0.25 J $$  What happened to the other 0.25 J? Will cases with front USB port support USB 3.0? Convert from MySQL datetime to another format with PHP I have a datetime column in MySQL.   How can I convert it to the display as mm/dd/yy H:M (AM/PM) using PHP? What is the idiom, proverb for "Little problems often become big problems if no one takes the initiative to correct them" What is the idiom, proverb for "Little problems often become big problems if no one takes the initiative to correct them"  Which means in an example that If the employees don’t bother to report a malfunctioning machine or a slip-and-fall hazard, serious injuries could occur – injuries that could have been preventable. Ignoring any hazard can be detrimental to one's business and the safety of their employees. I am interested in how uncertainty can be accounted for when considering the risk of extinction of a species. Forgive me for extending a rather tired thought experiment, but at least it's familiar territory and I hope it illustrates what I am trying to understand.  Let's say that Schrödinger was not satisfied with killing and not killing only one cat, so he went out and collected the last 15 remaining Himalayan Snow-Cats. He put each one in a box with a vial of poison, hammer, and a trigger device for releasing the hammer. Each trigger device has a known probability of releasing the hammer within any given hour, and the poison will take 5 hours to kill a cat (things got a bit trippy when he used radioactive decay, so this time he steers clear of quantum mechanics). After one hour, Schrödinger receives a notice from the ethics board telling him he's nuts and ordering him to release the cats immediately. He pushes a button which opens a cat-flap at the back of each box, thus releasing them all back into the wild. By the time the humane society check the boxes, all the cats have bolted. Before anyone can restrain him, Schrödinger detonates the remaining triggers, so nobody knows how many of the cats were poisoned.  The probability that each of the cats is poisoned is as follows:   0.17 0.46 0.62 0.08 0.40 0.76 0.03 0.47 0.53 0.32 0.21 0.85 0.31 0.38 0.69   After 5 hours have elapsed and all poisoned cats have died, what is the probability that there are:   (A) More than 10 Himalayan Snow-Cats still alive  (B) 10 or less still alive (C) 5 or less still alive (D) 2 or less still alive This problem has been seen on mid-2012 MacBook Pros on Mavericks and on late-2014 Retina MacBook Pros on Yosemite.  One day while using iMessage on the Mac, all the contacts turned red and messages failed to send, immediately returning a "not delivered" error. It also reported when trying to resend the messages that the contacts were no longer associated with an iMessage account.  Things that didn't fix this behavior:   Deleting the com.apple.ids.madrid Removing the Apple ID information from my phone, turning off iMessage on both of the devices, and placing my iPhone in airplane mode for several minutes before turning it on logging in again.   Could someone help me figure out how to solve this? I want to make a bootable USB thumb drive to install Windows on my computer. I don't want to use my old DVD to create an image and then upgrade to SP1, so I decided to download an untouched .iso file that already has SP1 in it. My question is this, is there a difference between these two files files?     en_windows_7_home_premium_with_sp1_x64_dvd_620851.iso   vs     en_windows_7_home_premium_with_sp1_x64_dvd_u_676549.iso   What does dvd_u mean, is it somehow different from plain dvd? Also will these work with my retail Home Premium key or do these work only for thoe with TechNet/MSDN accounts? I'm unable to uninstall MATLAB;  sandeep@sandeep-VPCEH28FN:~$ sudo rm /var/tmp/lm_TMW* [sudo] password for sandeep:  rm: cannot remove '/var/tmp/lm_TMW*': No such file or directory sandeep@sandeep-VPCEH28FN:~$ sudo apt-get purge matlab E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? sandeep@sandeep-VPCEH28FN:~$ sudo apt-get purge matlab-support E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? sandeep@sandeep-VPCEH28FN:~$ There's this exercise: let $\,f\,$ be analytic on $$D:=\{z\;\;;\;\;|z|&lt;1\}\,\,,\,|f(z)|\leq 1\,\,,\,\,\forall\,z\in D$$  and $\,z=0\,$  a zero of order $\,m\,$ of $\,f\,$.  Prove that $$\forall z\in D\,\,,\,\,|f(z)|\leq |z|^m$$  My solution: Induction on $\,m\,$: for $\,m=1\,$ this is exactly the lemma of Schwarz, thus we can assume truth for $\,k&lt;m\,$ and prove for $\,k=m&gt;1\,$ . Since $\,f(z)=z^mh(z)\,\,,\,h(0)\neq 0\,$ analytic in $\,D\,$ ,  put  $$g(z):=\frac{f(z)}{z}=z^{m-1}h(z)$$   Applying the inductive hypothesis and using Schwarz lemma $\,\,(***)\,\,$ we get that  $$|g(z)|=\left|\frac{f(z)}{z}\right|=|z|^{m-1}|h(z)|\stackrel{ind. hyp.}\leq |z|^{m-1}\Longrightarrow |f(z)|\leq |z^m|$$ and we're done...almost: we still have to prove $\,|g(z)|\leq 1\,$ for all $\,z\in D$ in order to be able to use the inductive hypothesis and this is precisely the part where I have some doubts: this can be proved as follows (all the time we work with $\,z\in D\,$):  $(1)\,\,$ For $\,f(z)=z^mh(z)\,$ we apply directly Schwarz lemma and get $$|f(z)|=|z|^m|h(z)|\leq |z|\Longrightarrow |z|^{m-1}h(z)|\leq 1$$ And since now the function $\,f_1(z)=z^{m-1}h(z)\,$ fulfills the conditions of S.L. we get  $(2)\,\,$ Applying again the lemma,  $$|f_1(z)|=|z|^{m-1}|h(z)|\leq |z|\Longrightarrow |z^{m-2}h(z)|\leq 1$$and now the function $\,f_2(z):=z^{m-2}h(z)\,$ fulfills the conditions of them  lemma so...etc.  In the step$\,m-1\,$ we get  $$|z||h(z)|\leq |z|\Longrightarrow {\color{red}{\mathbf{|h(z)|\leq 1}}}\,$$  and this is what allows us to use the inductive hypothesis in $\,\,(***)\,\,$ above.  My question: Is there any way I can't see right now to deduce directly, or in a shorter way, that $\,|h(z)\leq 1\,$ ?