Unity Tutorial -  Solar System with Unity Physics

Unity Tutorial - Solar System with Unity Physics

Coderious

3 года назад

40,852 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

OverAngelixVOD
OverAngelixVOD - 14.11.2023 00:54

Hello, I want to make a solar System but I understant why do you increased the earth mass by 15 ?

Ответить
Rohith Kumar
Rohith Kumar - 10.11.2023 21:38

Is there any way to download the assets directly? Someone please reply

Ответить
Alvaro Pazmiño
Alvaro Pazmiño - 01.08.2023 18:19

WOWOWOWOW!

Ответить
Tax the Rich
Tax the Rich - 31.07.2023 21:28

thank you for this great tutorial.. merci

Ответить
Kassidy J. Moore
Kassidy J. Moore - 26.05.2023 04:07

I can't get the moon to orbit the planet

Ответить
Ouuu a Burger
Ouuu a Burger - 24.05.2023 04:49

Do you think blender is better than Unity in rendering solar system?

Ответить
TAMAR GAMER
TAMAR GAMER - 14.05.2023 04:14

Where can i find a 3d models like These planets and the sun are wonderful

Ответить
Have
Have - 08.05.2023 19:29

What if i dont have the transform.right, how could i do the same thing?

Ответить
Chris Lovett
Chris Lovett - 05.05.2023 13:31

Excellent tutorial, thanks! I got it working in Unity 2021.3.24f1 but my code is identical to yours and all the RigidBody mass settings and I turned off "use gravity" as you did, but the Earth takes off on a long comet like orbit. I had to multiply the initial velocity by 0.7 to get a perfect circle, which is weird. I just realized 0.7 is 1/sqrt(2), and indeed adding 2*r solved it and makes it work, but your code didn't have that and your code matches Wikipedia. Weird. Thanks for all the other cool tricks with TrailRenderer and speeding up project time.

Ответить
Faerys7
Faerys7 - 16.04.2023 18:10

A beautiful simulation with physics formula on Unity, beautiful !
I'll reproduce your code I guess. And after that, I'd like to add code to simulate planetary rings (or proto-solar disc, or accretion discs), like Saturne, Jupiter...

Ответить
Lilian Sananikone
Lilian Sananikone - 06.03.2023 12:12

In realtime, is the G float member different for each celestial ?

Ответить
Damar Kuncoro
Damar Kuncoro - 18.01.2023 10:25

i love it

Ответить
Sanyo Hamarr
Sanyo Hamarr - 07.01.2023 22:28

As expected, it doesn't work. Oh well, another tutorial fail.

Ответить
t2g4
t2g4 - 06.01.2023 02:13

Whoah, this is awesome!
Thank you! Super video, it is short, explaining a lot, and have clear demostration!

Ответить
TrackSuit Cheems
TrackSuit Cheems - 18.12.2022 01:22

Greetings. I followed your tutorial for the shader graph star and this one for the orbits. However, my planets are not dynamically lit. Could you do a video on lighting in Unity or recommend any good ones. Soulcraft looks good, btw. Hope to see it released soon. Thanks.

Ответить
Maxvellua
Maxvellua - 13.12.2022 19:19

Thank you for the video!

Ответить
Baskan Aqua
Baskan Aqua - 11.12.2022 12:53

ur code working so good uhm how can i ask.. can i use this my education project?

Ответить
TheDarkShadow w
TheDarkShadow w - 14.09.2022 02:58

Ty so much for the tutorial, helps a lot

Ответить
DivAc
DivAc - 30.08.2022 08:57

It's so cool! Thank you very much!

Ответить
tnt ram
tnt ram - 28.08.2022 10:02

Very useful video!
It would be interesting to see what could be done from this project

Ответить
William Wall
William Wall - 30.07.2022 03:42

Cool stuff! However, there is an error in the formula for velocity in an elliptical orbit. The (2/r + 1/a) should be (2/r - 1/a). Also, on the distance scale chosen, the earth and the sun would be fifty times smaller.

Ответить
The Game Dev Student
The Game Dev Student - 27.07.2022 14:51

instead of the planet moving towards the sun, the sun is moving towards the planet in the gravity part. cud u pls lend a hand

Ответить
hue
hue - 18.06.2022 14:50

Awesome stuff, how can I make the planet movements significantly slower but still make it work? new to coding sorry lol

Ответить
Garcia
Garcia - 05.05.2022 22:17

Why is your channel so small?
Great content!
You deserve so many subscribers, i can understand something so complex in just some minutes, that is amazing!
Congratulations.

Ответить
jRivers
jRivers - 03.05.2022 17:05

Err i don't mean to be pedantic but i don't see Unity Physics being used here and i'm presuming this is using the built-in Physx physics engine?

Ответить
J. Kasprzycki
J. Kasprzycki - 25.04.2022 21:51

I get " operator '.' cannot be applied to operand of type 'void' " error message :/

Ответить
Muka Pochotordo
Muka Pochotordo - 21.04.2022 21:43

Hi, could you make a tutorial to make the orbit in the shape of an ellipse? Very good tutorial by the way.

Ответить
Choc
Choc - 16.04.2022 02:33

Hey man, I have gotten it to work with the circular orbit! However for the elliptical it's not working. Seeing as this solar system is scaled down, what values do I need to use for the values: 2, 1, a in this part of the equation -> (2/r - 1/a)?

Ответить
Jeronimo Collares
Jeronimo Collares - 11.04.2022 18:29

Nice tutorial, really thanks. But you have something about a 'HUGE' system star, Solar or, at last, what is the best way to do it without broke the engine (because this size of a space, planets, etc)?

Ответить
Viktor Sørensen
Viktor Sørensen - 10.04.2022 16:01

Amazing video, I've been looking for something like this for a while. Just what i needed.

Ответить
Mezan
Mezan - 28.03.2022 22:03

Honestly this is the best tutorial about this topic

Ответить
Snipeax 0
Snipeax 0 - 23.03.2022 07:04

thank you, that helped me so much to figure some problem with my project, would it be possible to make a video on how to predict the trajectory of a planet with a linerender or something?

Ответить
Haven
Haven - 03.03.2022 08:35

Just wondering why did you add two foreach loops. I am sure there is a good reason, but I just cant figure it out and I am trying to learn C# so was curious.

Ответить
SmoothBlock700
SmoothBlock700 - 19.02.2022 12:58

hi , nice video but i have a question - when using urp my textures dont apply to my object. any solution please??

Ответить
pikachu iswatchingu
pikachu iswatchingu - 17.02.2022 07:10

hi this was a wonderful tutorial but im having a problem where after i added more planets the sun started to wander. like it wanders in a straight line and pretty fast too. i get that it gets pulled a little by the other planets but it's literally wandering to a whole nother galaxy

Ответить
Astro Solutions
Astro Solutions - 06.02.2022 10:14

hi! this is a awesome tutorial, im making my own solar system simulation too, can i get the codes and the mass tables from somewhere?

Ответить
Fatima Arif
Fatima Arif - 04.02.2022 23:06

thanks life saver. < 3

Ответить
Gavyn McDonald
Gavyn McDonald - 03.02.2022 04:31

I dont know if this is just me but my planets like to go out of orbit and shoot off into space.

Ответить
my fish is not happy
my fish is not happy - 12.01.2022 22:47

could you project shadows and add a fixed pov from earth surface? Even without earth rotation on its axis, to see the Moon phases? That would be amazing...

Ответить
my fish is not happy
my fish is not happy - 12.01.2022 22:43

I luv you.

Ответить
mjc
mjc - 04.01.2022 20:59

Thank you soooo much!!

Ответить
Bireswar Sett
Bireswar Sett - 12.12.2021 23:10

I knew the formuals and everything but wasn’t ready to implement it but after seeing your video I got the faith in myself to implement it and now I have my own solar system.

Ответить
Avarith
Avarith - 10.12.2021 18:23

So I have a weird problem with the velocity. When I add the velocity part to the script my earth just flies away. I copied the script line for line. Any idea why this is happening to me?

Ответить
Soham Roy
Soham Roy - 12.10.2021 18:30

r u scientist ? dude u rock !

Ответить
EHM01
EHM01 - 19.09.2021 11:26

I followed the gravity script but when i compile the script i get two errors saying ';' and '{' I double checked everything and nothing is working

Ответить
ytubeanon
ytubeanon - 10.08.2021 04:04

quick tip - I think if you press Shift+F it will lock on to your selected gameobject in Scene view, so you don't have to manually scroll the screen with your mouse

Ответить
Sujal Choudhari
Sujal Choudhari - 19.06.2021 05:27

Nice video.
Is deformation of planet w.r.t the nearest Celestial possible?
Like if a planet goes near the sun, it will deform and vapourise.

Ответить