1

I want to simulate the trajectories of planets in a seperate scene to find out where they will be in the future. I drew a quick diagram to demonstrate.

Is there a way to simulate 2 scenes separately, hiding one but showing the other? I tried this which says they don't interact with each other, but when I tried it they still collided.

1 Answers1

0

Yes, there is a way, if you put all "hidden" objects, like planets on a reparate layer in unityenter image description here

and disable collisions between that and any other layers in the edit/project setting/physicsenter image description here

This way those objects won't have any effect on the rest of your scene.

To visually hide the objects simply disable the rendering of that layer in your scene camera. And that's it, if hope this was helpful.

error13660
  • 120
  • 7
  • Would that allow for pausing the visible objects's physics, running the invisible objects's physics for (the equivalent of) a couple seconds worth of frames, getting their positions and passing them back to the visible objects, then resuming the visible objects's physics, all of that in a single frame? – pixelgaming579 Nov 10 '21 at 03:42
  • I believe what you're looking for is "patched conics". – Immersive Nov 10 '21 at 05:19
  • Your approach sounds quite complicated, just a guess, but wouldn't proportionately increasing your objects' velocity achieve the same thing? – error13660 Nov 10 '21 at 07:02