SebLague / Solar-System

Simple solar system experiment
https://www.youtube.com/watch?v=7axImc1sxa0
MIT License
1.15k stars 315 forks source link

How to add objects to planets #60

Open shevko11 opened 1 month ago

shevko11 commented 1 month ago

I want to add objects like trees or rocks to planets, but I don't understand how I can do this. Does somebody know how to do that?

Panicat commented 1 month ago

Yes, you raycast down from random sphere points around the planet, and spawn a prefab there. However, for dense rocks or grass, or with big planets, this would lag. I don't know how to make a more advanced system for rocks like KSP 1's Parallax mod or KSP 2's rocks.

shevko11 commented 1 month ago

Thanks for method!!!