@mr_yeahman (mr_yeahman) posted a new topic, subject "Gravity from planets and stars". It read:

   Im very interested in to create a spacesimulator, Freelancer-style, and even possible to land on some planets… The space in the game gonna be totally non gravity, liek in realworld… But I wanna have some gravity on the planets, suns, blackholes… The cool  
    thing I have in mind was If the spaceship run out of “gas” in a place with lots of black holes or planets and other massive things, it will pull the spaceship to it, and how closer the spaceshit is, how stronger is the gravity, and faster the spaceship goes… Some thing, like blackholes will take the spaceship even if the spaceship have full power from it, if it come to close…
    
    The question is, how can I create gravity to these massive stuff…
    
    Thx.

After which, @James_XVI (James XVI) added

    Working on a test for ya

To which @mr_yeahman (mr_yeahman) replied

    grrrrreat…I´ll check out later

To which @Zuker12 (Zuker12) replied

    mr_yeahman":
    
    > Im very interested in to create a spacesimulator, Freelancer-style, and even possible to land on some planets… The space in the game gonna be totally non gravity, liek in realworld… But I wanna have some gravity on the planets, suns, blackholes… The cool  
    >  thing I have in mind was If the spaceship run out of “gas” in a place with lots of black holes or planets and other massive things, it will pull the spaceship to it, and how closer the _spaceshit_ is, how stronger is the gravity, and faster the spaceship goes… Some thing, like blackholes will take the spaceship even if the spaceship have full power from it, if it come to close…
    > 
    > The question is, how can I create gravity to these massive stuff…
    > 
    > Thx.
    
    Spaceshit… hah! good one!
    
    and sorry for the off topic…
    
    You could try something like, putting some motion actuoator to your ship(s), and it will always move the spaceship towards the planet(s).
    
    Or create a plane or a cube or something and make it to track to the planet. Add an motion actuator which slowly moves toward the planet. Veery sloowly.
    
    NOTE: Untested theories. I don't know will they work, but just got the idea when testing the TrackTo actuator.

Then @Meat_Beater (Meat_Beater) said

    Spaceshit, ha ha. I didnt even catch that one! LOL

Then @mr_yeahman (mr_yeahman) said

    Zuker12:
    
    > Spaceshit… hah! good one!
    > 
    > and sorry for the off topic…
    > 
    > You could try something like, putting some motion actuoator to your ship(s), and it will always move the spaceship towards the planet(s).
    > 
    > Or create a plane or a cube or something and make it to track to the planet. Add an motion actuator which slowly moves toward the planet. Veery sloowly.
    > 
    > NOTE: Untested theories. I don't know will they work, but just got the idea when testing the TrackTo actuator. 
    
    Well, the thing is, IT Shall not moving to a planet who are to long away from da spaceship, It will only move toward a planet if the spaceship is close to it. understand?..  
    With your teori, it will always moving to planets which is very far away, and I don´t want that…

@Monster (Monster) replied

    Maybe this is an idea, but you need python:  
    Add a force to the spaceship.  
    -Calculate the stength of the force out of the distance to the planet.
    
      * The direction of the force should be from spaceship to the planet.  
    If you have multiple planets you can add more than one forces.
    
    
    
    But I think this requires some mathematics :evilgrin: .

After which, @Pacman (Pacman) added

    Spaceshit is cool !  Very cool.  
    I think simple script of gravity to point (nice work on ver 2.34): http://www.box.net/public/fqb958k2hy

@Olm-Z (Olm-Z) replied

    I think you can use the script I put on this thread, with some tweaking to do this grav effect : http://blenderartists.org/forum/showthread.php?t=87058

After which, @Zuker12 (Zuker12) added

    mr_yeahman:
    
    > Well, the thing is, IT Shall not moving to a planet who are to long away from da spaceship, It will only move toward a planet if the spaceship is close to it. understand?..  
    >  With your teori, it will always moving to planets which is very far away, and I don´t want that…
    
    Well what about near sensors or something? When it is near enough it will pull more… but this will make somewhat oddworld gravity… and stuff. /ih shit i said it again!)


{'source': 'discourse', 'url': 'https://blenderartists.org/t/gravity-from-planets-and-stars/381257', 'title': 'Gravity from planets and stars', 'views': 2179, 'has_accepted_answer': False, 'word_count': 723, 'like_count': 0, 'reply_count': 4, 'participant_count': 7, 'posts': 10, 'tags': '', 'author': '@mr_yeahman (mr_yeahman)', 'participants': '@mr_yeahman (mr_yeahman), @James_XVI (James XVI), @Zuker12 (Zuker12), @Meat_Beater (Meat_Beater), @Monster (Monster), @Pacman (Pacman), @Olm-Z (Olm-Z)', 'image_url': [None], 'created_at': '2007-01-25T09:41:51.000Z', 'last_posted_at': '2007-01-26T11:39:18.000Z'}