- Home /
Question by
Azeretrion · Mar 16, 2017 at 08:33 PM ·
physicsscript.gravity
How to get the Half-Major Axis from GameObject ?
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
![](https://koobas.hobune.stream/wayback/20220612113305im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Funfair simulation help 0 Answers
Airplane Stall 0 Answers
HELP PLEASE PROBLEM WITH JOITS 0 Answers
Setting a RigidBody's velocity messes with my custom gravity, not sure how to proceed. 0 Answers
Gravity still being applied with unity CharacterController 0 Answers