- Home /
 
               Question by 
               KillerHawk · Feb 21, 2018 at 07:48 PM · 
                physicsgravityplanet  
              
 
              Planetary based gravity
So i have quite a weird script for a game i'm creating. I need to create gravity that simulates around planets. In my scene i plan on having multiple planets that will each have their own gravity but i only want this gravity to affect the player if s/he is 10 units close for example. The problem im having currently is that the planets are getting pulled towards each other and i cant seem to figure out how to implement a distance limit fir the gravity to work. I plan to have this gravity affect the player and enemies.
Here is the video i used for my original script
Thanks in advance!
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                