SebLague / Solar-System

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

How to add objects to planets #60

Open shevko11 opened 3 months ago

shevko11 commented 3 months 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 3 months 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 3 months ago

Thanks for method!!!