How do you get a protoplanetary disk
-
- Posts: 2
- Joined: Wed Mar 12, 2025 9:07 pm
How do you get a protoplanetary disk
Please tell me how do you get a disk with mass orbiting a star through code
- testtubegames
- Site Admin
- Posts: 1164
- Joined: Mon Nov 19, 2012 7:54 pm
Re: How do you get a protoplanetary disk
Here's some code for that:
The way you can do it by hand would be:
a) add a star
b) select it
c) choose the "disk" object you want to add
d) hold "c" as you add the disk, making sure the star is still selected. (You can select it again by right-clicking.)
Code: Select all
_settings(x: 0, y: 0, zoom: 1);
_add(m: 1000, col: 2, lcol: 2, pic: 0, noGrav, xPinned, yPinned, x: 0, y: 0, t: 0);
_addDisk(x: -37.46, y: 38.75, randAngles, r: 100, rHole: 10, num: 1000, orbx: 0, orby: 0, orbMass: 1000, orbFixed: 1, orbDir: 1, t: 0, m: 1, col: 1, lcol: 0, pic: 2);
a) add a star
b) select it
c) choose the "disk" object you want to add
d) hold "c" as you add the disk, making sure the star is still selected. (You can select it again by right-clicking.)
-
- Posts: 2
- Joined: Wed Mar 12, 2025 9:07 pm
Re: How do you get a protoplanetary disk
Thank you for that it's very helpful