Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

planetary gravity in visual scripting/bolt?

Discussion in 'Visual Scripting' started by littnuke, Jun 29, 2022.

  1. littnuke

    littnuke

    Joined:
    May 27, 2022
    Posts:
    4
    couldnt find a single guide on it
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,947
    And you stopped there?!!!

    How about finding the parts that go into Newtons law of universal gravitation?

    - subtracting one vector from another

    - determining the magnitude of that vector

    - normalizing that vector

    - squaring the distance

    - taking the one-over inverse of the distance

    - multiplying it by G (Gravitational constant)

    - multiplying it by the masses of each body

    - applying an appropriate force to each body

    We do know how gravity works... high school physics and all...
     
    Last edited: Jun 29, 2022
  3. littnuke

    littnuke

    Joined:
    May 27, 2022
    Posts:
    4
    i am new to bolt,ok? i didnt know how to CODE it ,also will this allow me to go around the planet?
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,947
    I've never used bolt either but I can read Wikipedia about Newtonian planetary physics.

    You should probably invest some time in a bunch of Bolt tutorials, starting from the simplest and moving up.

    You might also find some good resources here:

    https://forum.unity.com/forums/visual-scripting.537/
     
  5. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,620
    Well you couldn't find the visual scripting forum either. ;)

    I'll move your post for you.

    Good luck.