- Home /
 
               Question by 
               Azeretrion · Mar 16, 2017 at 08:32 PM · 
                script.gravityphysics2dspace  
              
 
              How to get the Half-Major axis of a 2D collider ?
Hi, I'm programming a space game, so gravity is a major part of it. I'm trying to calculate the sphere of influence of each planet: SOI = a(M/m)^(2/5) where a is the Half-Major Axis of the smaller celestial body (here my spaceship). So how can I obtain this from a GameObject, collider, rigidbody, or just with scripting ?
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
How to lock an objects orbiting focal point. 0 Answers
Periodic Boundary Condition in Unity 0 Answers
How to give player a "dash" ability? 0 Answers
colliders vs raycast vs physics.overlap? 0 Answers
Horizontal gravity on One gameobject 2 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                