Question by 
               Navneetupd · Jan 11, 2018 at 04:52 PM · 
                3d3d model3d text  
              
 
              The player gets fly in air.
I am making a game of endless running. When my character ( sphere) goes on hill (i made a cube like a hill in game) the camera gets close to the player and when that hill ends the player starts flying in the air. I have made a GM script (game master) and writen Public static float vertVel=0; And in main character script if (other.gameObject.name == "rampbottomtrig") { GM.vertVel=2;
}
If (other.gameObject.name =="ramptoptrig") { GM.vertVel=0;
               Comment
              
 
               
              Your answer