How to include general relativity in the code?
How to include general relativity in the code?
When I start GR I have to load the code first then to switch on the GR option from setup. I am asking how to start directly with GR (and light speed value) such that it is already included in the code?
- testtubegames
- Site Admin
- Posts: 1139
- Joined: Mon Nov 19, 2012 7:54 pm
Re: How to include general relativity in the code?
Good question - just write this for the settings in the code:
_settings(gravity: GR (c=31));
with c being whatever speed you'd like.
_settings(gravity: GR (c=31));
with c being whatever speed you'd like.
Re: How to include general relativity in the code?
Many Thanks for the useful answer 

Re: How to include general relativity in the code?
I may play around with general relativity too. Is speed value of 31 what you recommend to use or was that just an example?
This are my favorite probiotics for women these days.
- testtubegames
- Site Admin
- Posts: 1139
- Joined: Mon Nov 19, 2012 7:54 pm
Re: How to include general relativity in the code?
That's just an example -- the default value is 30. Which seems to work well for the various masses and densities normally used in the sim. But it's interesting, too, to play around with it and see what happens. What if light were *really* slow, for instance.
(hmm, no velocity raptor emoji, that's quite an oversight)
(hmm, no velocity raptor emoji, that's quite an oversight)